Animation Editor: Fix trying to stop playback without player.

Fixes #9280

(cherry picked from commit bb9daaccff)
This commit is contained in:
Andreas Haas 2017-07-01 17:49:43 +02:00 committed by Rémi Verschelde
parent 34c8beb91c
commit 3d95424147
1 changed files with 4 additions and 0 deletions

View File

@ -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);