Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Doesn't count PiCreatureScene blinks as animations (that are counted up for -n purposes)

Grant Sanderson8c5bd4ecc9e6
diff --git a/topics/characters.py b/topics/characters.py
index 5f454c001..46197d2a1 100644
--- a/topics/characters.py
+++ b/topics/characters.py
@@ -575,6 +575,7 @@ class PiCreatureScene(Scene):
time_to_blink = self.total_wait_time%self.seconds_to_blink == 0
if blink and self.any_pi_creatures_on_screen() and time_to_blink:
self.blink()
+ self.num_plays -= 1 #This shouldn't count as an animation
else:
self.non_blink_wait()
time -= 1