mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Not a great long-term fix, but flipping should always refresh the triangulation
This commit is contained in:
parent
01d989ba23
commit
09579fcd3e
1 changed files with 3 additions and 2 deletions
|
@ -848,8 +848,8 @@ class VMobject(Mobject):
|
|||
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
|
||||
|
@ -870,9 +870,10 @@ class VMobject(Mobject):
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue