mirror of
https://github.com/3b1b/manim.git
synced 2025-08-19 13:01:00 +00:00
Add more lenient tolerance to Mobject.has_same_shape_as
This commit is contained in:
parent
fab917ccee
commit
3bf9e40aba
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue