core: Don't run frame scripts on stopped movie clips.

This commit is contained in:
David Wendt 2020-08-21 18:43:02 -04:00 committed by Mike Welsh
parent 556c951b1c
commit c8cd4d09cd
1 changed files with 3 additions and 1 deletions

View File

@ -1473,9 +1473,11 @@ impl<'gc> TDisplayObject<'gc> for MovieClip<'gc> {
{ {
let frame_id = self.0.read().current_frame; let frame_id = self.0.read().current_frame;
if self.playing() {
self.run_frame_scripts(frame_id, context); self.run_frame_scripts(frame_id, context);
} }
} }
}
fn render(&self, context: &mut RenderContext<'_, 'gc>) { fn render(&self, context: &mut RenderContext<'_, 'gc>) {
context.transform_stack.push(&*self.transform()); context.transform_stack.push(&*self.transform());