mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 05:07:47 +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):
|
def triggers_refreshed_triangulation(func: Callable):
|
||||||
@wraps(func)
|
@wraps(func)
|
||||||
def wrapper(self, *args, **kwargs):
|
def wrapper(self, *args, **kwargs):
|
||||||
old_points = self.get_points().copy()
|
|
||||||
func(self, *args, **kwargs)
|
func(self, *args, **kwargs)
|
||||||
if not np.all(self.get_points() == old_points):
|
self.refresh_triangulation()
|
||||||
self.refresh_triangulation()
|
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
@triggers_refreshed_triangulation
|
@triggers_refreshed_triangulation
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue