Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Use Mobject.become instead of Transform.update(1)

Grant Sanderson03d88bc92669
diff --git a/manimlib/for_3b1b_videos/pi_creature.py b/manimlib/for_3b1b_videos/pi_creature.py
index 6f6b7c7f1..429868e98 100644
--- a/manimlib/for_3b1b_videos/pi_creature.py
+++ b/manimlib/for_3b1b_videos/pi_creature.py
@@ -157,7 +157,7 @@ class PiCreature(SVGMobject):
new_self.shift(self.eyes.get_center() - new_self.eyes.get_center())
if hasattr(self, "purposeful_looking_direction"):
new_self.look(self.purposeful_looking_direction)
- Transform(self, new_self).update(1)
+ self.become(new_self)
self.mode = mode
return self