From 09579fcd3eb94be7f0c6d3963afa2bce74941ecf Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 24 Mar 2021 13:58:52 -0700 Subject: [PATCH] Not a great long-term fix, but flipping should always refresh the triangulation --- manimlib/mobject/types/vectorized_mobject.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index c1c698f1..1394e78b 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -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