Lock shader data during interaction

This commit is contained in:
Grant Sanderson
2020-06-18 16:30:38 -07:00
parent 81f6063736
commit fd1f4313ec

View File

@ -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: