From 33d2894c167c577a15fdadbaf26488ff1f5bff87 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Mon, 10 Jan 2022 15:07:40 -0800 Subject: [PATCH] Add refresh_locked_data --- manimlib/scene/scene.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manimlib/scene/scene.py b/manimlib/scene/scene.py index 256e192e..c67d2850 100644 --- a/manimlib/scene/scene.py +++ b/manimlib/scene/scene.py @@ -432,6 +432,11 @@ class Scene(object): def unlock_mobject_data(self): self.camera.release_static_mobjects() + def refresh_locked_data(self): + self.unlock_mobject_data() + self.lock_static_mobject_data() + return self + def begin_animations(self, animations): for animation in animations: animation.begin()