mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 05:24:22 +08:00
Use array copy when checking need for refreshing triangulation
This commit is contained in:
@ -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()
|
||||||
|
Reference in New Issue
Block a user