From fd1f4313ec0c48626543f3b9beabf911d4849b0e Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Thu, 18 Jun 2020 16:30:38 -0700 Subject: [PATCH] Lock shader data during interaction --- manimlib/scene/scene.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manimlib/scene/scene.py b/manimlib/scene/scene.py index 348bd6c2..dd7b7633 100644 --- a/manimlib/scene/scene.py +++ b/manimlib/scene/scene.py @@ -100,10 +100,13 @@ class Scene(Container): # which updates the frame while under # the hood calling the pyglet event loop self.quit_interaction = False + self.lock_static_mobject_data() while not self.window.is_closing and not self.quit_interaction: self.update_frame() if self.window.is_closing: self.window.destroy() + if self.quit_interaction: + self.unlock_mobject_data() def embed(self): if not self.preview: