mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Use array copy when checking need for refreshing triangulation
This commit is contained in:
parent
8f1dfabff0
commit
758f329a06
1 changed files with 1 additions and 1 deletions
|
@ -887,7 +887,7 @@ class VMobject(Mobject):
|
||||||
def triggers_refreshed_triangulation(func):
|
def triggers_refreshed_triangulation(func):
|
||||||
@wraps(func)
|
@wraps(func)
|
||||||
def wrapper(self, *args, **kwargs):
|
def wrapper(self, *args, **kwargs):
|
||||||
old_points = self.get_points()
|
old_points = self.get_points().copy()
|
||||||
func(self, *args, **kwargs)
|
func(self, *args, **kwargs)
|
||||||
if not np.all(self.get_points() == old_points):
|
if not np.all(self.get_points() == old_points):
|
||||||
self.refresh_unit_normal()
|
self.refresh_unit_normal()
|
||||||
|
|
Loading…
Add table
Reference in a new issue