Skip to content

Commit b9367a2

Browse files
abul4fiabehackl
andauthored
Small fix in the code of ArcBrace (ManimCommunity#3226)
Avoiding the creation of an Arc object at import time Co-authored-by: Benjamin Hackl <[email protected]>
1 parent 05594ec commit b9367a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

manim/mobject/svg/brace.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,12 @@ def construct(self):
335335

336336
def __init__(
337337
self,
338-
arc: Arc = Arc(start_angle=-1, angle=2, radius=1),
338+
arc: Arc | None = None,
339339
direction: Sequence[float] = RIGHT,
340340
**kwargs,
341341
):
342+
if arc is None:
343+
arc = Arc(start_angle=-1, angle=2, radius=1)
342344
arc_end_angle = arc.start_angle + arc.angle
343345
line = Line(UP * arc.start_angle, UP * arc_end_angle)
344346
scale_shift = RIGHT * np.log(arc.radius)

0 commit comments

Comments
 (0)