From 0e326c7ac5aad544f35114de44beeafeae3de1c9 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Thu, 18 Mar 2021 17:34:36 -0700 Subject: [PATCH] Return stroke_width as 1d array --- manimlib/mobject/types/vectorized_mobject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index 874047ce..c1c698f1 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -244,7 +244,7 @@ class VMobject(Mobject): return self.data['stroke_rgba'][:, 3] def get_stroke_widths(self): - return self.data['stroke_width'] + return self.data['stroke_width'][:, 0] # TODO, it's weird for these to return the first of various lists # rather than the full information