From 2102d0981227eef56e6dd7d0e4169f9a438c7940 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Sun, 15 Oct 2023 12:26:33 -0300 Subject: [PATCH] Disable "Edit Transitions..." item if no animations are present --- editor/plugins/animation_player_editor_plugin.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/editor/plugins/animation_player_editor_plugin.cpp b/editor/plugins/animation_player_editor_plugin.cpp index 75c8ac11d08..440496b948f 100644 --- a/editor/plugins/animation_player_editor_plugin.cpp +++ b/editor/plugins/animation_player_editor_plugin.cpp @@ -1051,7 +1051,6 @@ void AnimationPlayerEditor::_ensure_dummy_player() { } // Make some options disabled. - tool_anim->get_popup()->set_item_disabled(tool_anim->get_popup()->get_item_index(TOOL_EDIT_TRANSITIONS), dummy_exists); onion_toggle->set_disabled(dummy_exists); onion_skinning->set_disabled(dummy_exists); int selected = animation->get_selected(); @@ -1365,9 +1364,6 @@ void AnimationPlayerEditor::_animation_tool_menu(int p_option) { _animation_rename(); } break; case TOOL_EDIT_TRANSITIONS: { - if (is_dummy) { - break; - } _animation_blend(); } break; case TOOL_REMOVE_ANIM: {