File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ def __init__(
124
124
self .data = {}
125
125
self .fill_opacity = fill_opacity
126
126
self .stroke_opacity = stroke_opacity
127
- self .stroke_width = stroke_width
127
+ self .stroke_width = np . array ([[ stroke_width ]])
128
128
self .draw_stroke_behind_fill = draw_stroke_behind_fill
129
129
# Indicates that it will not be displayed, but
130
130
# that it should count in parent mobject's path
@@ -267,6 +267,8 @@ def set_stroke(
267
267
background = None ,
268
268
recurse = True ,
269
269
):
270
+ if width is None :
271
+ width = np .array ([[0 ]])
270
272
if opacity is not None :
271
273
self .stroke_opacity = opacity
272
274
if recurse :
@@ -283,7 +285,7 @@ def set_stroke(
283
285
284
286
if width is not None :
285
287
for mob in self .get_family (recurse ):
286
- mob .stroke_width = np .array ([[ width ] for width in tuplify ( width )] )
288
+ mob .stroke_width = np .array (width )
287
289
288
290
if background is not None :
289
291
for mob in self .get_family (recurse ):
You can’t perform that action at this time.
0 commit comments