mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 19:46:21 +08:00
Add more lenient tolerance to Mobject.has_same_shape_as
This commit is contained in:
@ -739,7 +739,7 @@ class Mobject(object):
|
||||
)
|
||||
if len(points1) != len(points2):
|
||||
return False
|
||||
return bool(np.isclose(points1, points2).all())
|
||||
return bool(np.isclose(points1, points2, atol=self.get_width() * 1e-2).all())
|
||||
|
||||
# Creating new Mobjects from this one
|
||||
|
||||
|
Reference in New Issue
Block a user