core: Don't run frame scripts on stopped movie clips.
This commit is contained in:
parent
556c951b1c
commit
c8cd4d09cd
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue