A community-maintained Python framework for creating mathematical animations.
Solution to issue 3562. (#4373)
Henrik Skov Midtibydd04fce52ae9
diff --git a/manim/mobject/opengl/opengl_vectorized_mobject.py b/manim/mobject/opengl/opengl_vectorized_mobject.pyindex 766c3029a..c3889e99f 100644--- a/manim/mobject/opengl/opengl_vectorized_mobject.py+++ b/manim/mobject/opengl/opengl_vectorized_mobject.py@@ -283,7 +283,10 @@ class OpenGLVMobject(OpenGLMobject):if width is not None:for mob in self.get_family(recurse):- mob.stroke_width = np.array([[width] for width in tuplify(width)])+ if isinstance(width, np.ndarray):+ mob.stroke_width = width+ else:+ mob.stroke_width = np.array([[width] for width in tuplify(width)])if background is not None:for mob in self.get_family(recurse):