mirror of
https://github.com/3b1b/manim.git
synced 2025-08-19 13:01:00 +00:00
Fix Write bug (#1740)
* Avoid division by zero error for calling Write on null objects
This commit is contained in:
parent
602809758e
commit
b3b7d214ad
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ class Write(DrawBorderThenFill):
|
||||||
else:
|
else:
|
||||||
self.run_time = 2
|
self.run_time = 2
|
||||||
if self.lag_ratio is None:
|
if self.lag_ratio is None:
|
||||||
self.lag_ratio = min(4.0 / length, 0.2)
|
self.lag_ratio = min(4.0 / (length + 1.0), 0.2)
|
||||||
|
|
||||||
|
|
||||||
class ShowIncreasingSubsets(Animation):
|
class ShowIncreasingSubsets(Animation):
|
||||||
|
|
Loading…
Add table
Reference in a new issue