diff --git a/manim/mobject/opengl/opengl_mobject.py b/manim/mobject/opengl/opengl_mobject.py index d0a3306f7f..b7f3ab1882 100644 --- a/manim/mobject/opengl/opengl_mobject.py +++ b/manim/mobject/opengl/opengl_mobject.py @@ -2487,7 +2487,7 @@ def align_data(self, mobject: OpenGLMobject) -> Self: # can handle that case differently if they choose mob1.align_points(mob2) for key in mob1.data.keys() & mob2.data.keys(): - if key == "points": + if key == "points" or key == "stroke_width": continue arr1 = mob1.data[key] arr2 = mob2.data[key] @@ -2582,6 +2582,8 @@ def construct(self): for key in self.data: if key in self.locked_data_keys: continue + if isinstance(self.data[key], int): + continue if len(self.data[key]) == 0: continue if key not in mobject1.data or key not in mobject2.data: