mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Don't check point equality in triggers_refreshed_triangulation
This commit is contained in:
parent
083de38e4c
commit
6204011fe4
1 changed files with 1 additions and 3 deletions
|
@ -1009,10 +1009,8 @@ class VMobject(Mobject):
|
|||
def triggers_refreshed_triangulation(func: Callable):
|
||||
@wraps(func)
|
||||
def wrapper(self, *args, **kwargs):
|
||||
old_points = self.get_points().copy()
|
||||
func(self, *args, **kwargs)
|
||||
if not np.all(self.get_points() == old_points):
|
||||
self.refresh_triangulation()
|
||||
self.refresh_triangulation()
|
||||
return wrapper
|
||||
|
||||
@triggers_refreshed_triangulation
|
||||
|
|
Loading…
Add table
Reference in a new issue