File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -344,6 +344,7 @@ def __init__(
344
344
reverse : bool = False ,
345
345
** kwargs ,
346
346
) -> None :
347
+ self ._typecheck_input (vmobject )
347
348
run_time : float | None = kwargs .pop ("run_time" , None )
348
349
lag_ratio : float | None = kwargs .pop ("lag_ratio" , None )
349
350
run_time , lag_ratio = self ._set_default_config_from_length (
@@ -387,6 +388,7 @@ def _adjust_stroke_width_for_text(
387
388
if stroke_width is not None :
388
389
return stroke_width
389
390
if vmobject .height != 0 :
391
+ # if the height is zero, accessing font_size causes ZeroDivisionError
390
392
font_size = getattr (vmobject , "font_size" , DEFAULT_FONT_SIZE )
391
393
if font_size < 20 or font_size > 6 * DEFAULT_FONT_SIZE :
392
394
# Assuming the user is using MovingCameraScene and performing a zoom-in or zoom-out
You can’t perform that action at this time.
0 commit comments