mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 04:57:46 +00:00
Remove triangulation lock after animation
This commit is contained in:
parent
e6f73073fe
commit
8c9ea90d50
1 changed files with 1 additions and 5 deletions
|
|
@ -59,7 +59,6 @@ class PiCreature(SVGMobject):
|
|||
PI_CREATURE_DIR,
|
||||
f"{self.file_name_prefix}_{mode}.svg"
|
||||
)
|
||||
SVGMobject.__init__(self, file_name=svg_file, **kwargs)
|
||||
except Exception:
|
||||
warnings.warn(f"No {self.file_name_prefix} design with mode {mode}")
|
||||
svg_file = os.path.join(
|
||||
|
|
@ -68,7 +67,7 @@ class PiCreature(SVGMobject):
|
|||
"files",
|
||||
"PiCreatures_plain.svg",
|
||||
)
|
||||
SVGMobject.__init__(self, file_name=svg_file, **kwargs)
|
||||
SVGMobject.__init__(self, file_name=svg_file, **kwargs)
|
||||
|
||||
if self.flip_at_start:
|
||||
self.flip()
|
||||
|
|
@ -263,9 +262,6 @@ class PiCreature(SVGMobject):
|
|||
def prepare_for_animation(self):
|
||||
self.unlock_triangulation()
|
||||
|
||||
def cleanup_from_animation(self):
|
||||
self.lock_triangulation()
|
||||
|
||||
|
||||
def get_all_pi_creature_modes():
|
||||
result = []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue