Return stroke_width as 1d array

This commit is contained in:
Grant Sanderson 2021-03-18 17:34:36 -07:00
parent ed2e3e80d9
commit 0e326c7ac5

View file

@ -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