Fix error when using VFadeIn and its subclasses

This commit is contained in:
Irvanal Haq 2025-03-24 06:35:48 +07:00
parent f4737828f6
commit 7ea15a8bf9

View file

@ -164,10 +164,10 @@ class VFadeIn(Animation):
alpha: float alpha: float
) -> None: ) -> None:
submob.set_stroke( submob.set_stroke(
opacity=interpolate(0, start.get_stroke_opacity(), alpha) opacity=float(interpolate(0, start.get_stroke_opacity(), alpha))
) )
submob.set_fill( submob.set_fill(
opacity=interpolate(0, start.get_fill_opacity(), alpha) opacity=float(interpolate(0, start.get_fill_opacity(), alpha))
) )