mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Use Mobject.become instead of Transform.update(1)
This commit is contained in:
parent
1735f16d68
commit
03d88bc926
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ class PiCreature(SVGMobject):
|
||||||
new_self.shift(self.eyes.get_center() - new_self.eyes.get_center())
|
new_self.shift(self.eyes.get_center() - new_self.eyes.get_center())
|
||||||
if hasattr(self, "purposeful_looking_direction"):
|
if hasattr(self, "purposeful_looking_direction"):
|
||||||
new_self.look(self.purposeful_looking_direction)
|
new_self.look(self.purposeful_looking_direction)
|
||||||
Transform(self, new_self).update(1)
|
self.become(new_self)
|
||||||
self.mode = mode
|
self.mode = mode
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue