You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Animation Editor: Fix trying to stop playback without player.
Fixes #9280
This commit is contained in:
@@ -254,6 +254,10 @@ void AnimationPlayerEditor::_play_bw_from_pressed() {
|
|||||||
}
|
}
|
||||||
void AnimationPlayerEditor::_stop_pressed() {
|
void AnimationPlayerEditor::_stop_pressed() {
|
||||||
|
|
||||||
|
if (!player) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
player->stop(false);
|
player->stop(false);
|
||||||
play->set_pressed(false);
|
play->set_pressed(false);
|
||||||
stop->set_pressed(true);
|
stop->set_pressed(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user