From 79959fa050ebeb1bcd93b92f0921d98a52b4e04c Mon Sep 17 00:00:00 2001 From: Henrik Skov Midtiby Date: Mon, 4 Aug 2025 16:30:17 +0200 Subject: [PATCH] Is this a good solution? --- manim/mobject/opengl/opengl_mobject.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: