mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Remove "orientation" from locked_keys when recomputed
Rather than re-reading into fill_data
This commit is contained in:
parent
f5455bb554
commit
9b2495abb1
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue