Animation Editor: Fix trying to stop playback without player.
Fixes #9280
This commit is contained in:
parent
2ee86c773a
commit
bb9daaccff
1 changed files with 4 additions and 0 deletions
|
@ -254,6 +254,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 a new issue