mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 11:03:03 +08:00
Lock shader data during interaction
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user