Animation Editor: Fix trying to stop playback without player.
Fixes #9280
(cherry picked from commit bb9daaccff
)
This commit is contained in:
parent
34c8beb91c
commit
3d95424147
|
@ -255,6 +255,10 @@ void AnimationPlayerEditor::_play_bw_from_pressed() {
|
|||
}
|
||||
void AnimationPlayerEditor::_stop_pressed() {
|
||||
|
||||
if (!player) {
|
||||
return;
|
||||
}
|
||||
|
||||
player->stop(false);
|
||||
play->set_pressed(false);
|
||||
stop->set_pressed(true);
|
||||
|
|
Loading…
Reference in New Issue