Update frame on all play calls when skipping animations, so as to provide a rapid preview during scene loading

This commit is contained in:
Grant Sanderson
2022-05-04 21:22:48 -07:00
parent 93fc81ac9d
commit 41b811a5e7

View File

@ -545,6 +545,10 @@ class Scene(object):
if self.inside_embed:
self.save_state()
if self.skip_animations and self.window is not None:
# Show some quick frames along the way
self.update_frame(dt=0, ignore_skipping=True)
self.num_plays += 1
return wrapper