core: `Avm2Button` always runs a frame on set children, even if it's not the current state
This commit is contained in:
parent
bf1fb93b83
commit
208c191d88
|
@ -310,7 +310,15 @@ impl<'gc> Avm2Button<'gc> {
|
||||||
|
|
||||||
if let Some(child) = child {
|
if let Some(child) = child {
|
||||||
child.frame_constructed(context);
|
child.frame_constructed(context);
|
||||||
child.run_frame(context);
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if let Some(child) = child {
|
||||||
|
child.run_frame(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
if swf::ButtonState::from(self.0.read().state) == state {
|
||||||
|
if let Some(child) = child {
|
||||||
child.run_frame_scripts(context);
|
child.run_frame_scripts(context);
|
||||||
child.exit_frame(context);
|
child.exit_frame(context);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue