Skip to content

Commit f8f750c

Browse files
committed
Is this a good solution?
1 parent 855ea86 commit f8f750c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

manim/mobject/opengl/opengl_mobject.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2581,7 +2581,7 @@ def align_data(self, mobject: OpenGLMobject) -> Self:
25812581
# can handle that case differently if they choose
25822582
mob1.align_points(mob2)
25832583
for key in mob1.data.keys() & mob2.data.keys():
2584-
if key == "points":
2584+
if key == "points" or key == "stroke_width":
25852585
continue
25862586
arr1 = mob1.data[key]
25872587
arr2 = mob2.data[key]
@@ -2676,6 +2676,8 @@ def construct(self):
26762676
for key in self.data:
26772677
if key in self.locked_data_keys:
26782678
continue
2679+
if isinstance(self.data[key], int):
2680+
continue
26792681
if len(self.data[key]) == 0:
26802682
continue
26812683
if key not in mobject1.data or key not in mobject2.data:

0 commit comments

Comments
 (0)