Skip to content

Commit

Permalink
Not a great long-term fix, but flipping should always refresh the tri…
Browse files Browse the repository at this point in the history
…angulation
  • Loading branch information
3b1b committed Mar 24, 2021
1 parent 01d989b commit 09579fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions manimlib/mobject/types/vectorized_mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,8 +848,8 @@ def wrapper(self, *args, **kwargs):
old_points = self.get_points()
func(self, *args, **kwargs)
if not np.all(self.get_points() == old_points):
self.refresh_triangulation()
self.refresh_unit_normal()
self.refresh_triangulation()
return wrapper

@triggers_refreshed_triangulation
Expand All @@ -870,9 +870,10 @@ def apply_function(self, function, make_smooth=False, **kwargs):
self.make_approximately_smooth()
return self

@triggers_refreshed_triangulation
def flip(self, *args, **kwargs):
super().flip(*args, **kwargs)
self.refresh_unit_normal()
self.refresh_triangulation()
return self

# For shaders
Expand Down

0 comments on commit 09579fc

Please sign in to comment.