mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Lock shader data during interaction
This commit is contained in:
parent
81f6063736
commit
fd1f4313ec
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue