From bb9daaccfff193b9b20ff0679baef716fc6ee892 Mon Sep 17 00:00:00 2001 From: Andreas Haas Date: Sat, 1 Jul 2017 17:49:43 +0200 Subject: Animation Editor: Fix trying to stop playback without player. Fixes #9280 --- editor/plugins/animation_player_editor_plugin.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editor/plugins/animation_player_editor_plugin.cpp b/editor/plugins/animation_player_editor_plugin.cpp index 28c5b89741..c3e1f60ccc 100644 --- a/editor/plugins/animation_player_editor_plugin.cpp +++ b/editor/plugins/animation_player_editor_plugin.cpp @@ -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); -- cgit v1.2.3