Skip to content

Commit 79959fa

Browse files
committed
Is this a good solution?
1 parent 9c9ebf4 commit 79959fa

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
@@ -2487,7 +2487,7 @@ def align_data(self, mobject: OpenGLMobject) -> Self:
24872487
# can handle that case differently if they choose
24882488
mob1.align_points(mob2)
24892489
for key in mob1.data.keys() & mob2.data.keys():
2490-
if key == "points":
2490+
if key == "points" or key == "stroke_width":
24912491
continue
24922492
arr1 = mob1.data[key]
24932493
arr2 = mob2.data[key]
@@ -2582,6 +2582,8 @@ def construct(self):
25822582
for key in self.data:
25832583
if key in self.locked_data_keys:
25842584
continue
2585+
if isinstance(self.data[key], int):
2586+
continue
25852587
if len(self.data[key]) == 0:
25862588
continue
25872589
if key not in mobject1.data or key not in mobject2.data:

0 commit comments

Comments
 (0)