From 9b2495abb1d8f722141a10e149220c55c44291e4 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Thu, 5 Jan 2023 08:46:12 -0500 Subject: [PATCH] Remove "orientation" from locked_keys when recomputed Rather than re-reading into fill_data --- manimlib/mobject/types/vectorized_mobject.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index fcab57c9..345f578b 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -995,9 +995,8 @@ class VMobject(Mobject): v12s = points[2::3] - points[1::3] curve_orientations = np.sign(cross2d(v01s, v12s)) self.data["orientation"] = np.transpose([curve_orientations.repeat(3)]) - # Read into fill_data so there are no locked data issues later - self.fill_data = resize_array(self.fill_data, len(points)) - self.fill_data["orientation"][:] = self.data["orientation"] + if "orientation" in self.locked_data_keys: + self.locked_data_keys.remove("orientation") concave_parts = curve_orientations < 0