diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-06-05 13:59:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-05 13:59:31 +0200 |
commit | 25908c17c9a8665f81e5f55e0853212036f05b77 (patch) | |
tree | 3f5478b8862a933ac33b3465aafadbff177c169b | |
parent | 4b8609ded937481275146342bdd9aea1326adad3 (diff) | |
parent | e363fdeed9c94e258f2d419ac5d4bdd5a8e73cf8 (diff) |
Merge pull request #61696 from guilhermefelipecgs/fix_menus
Removes start/end states from menus
-rw-r--r-- | editor/plugins/animation_blend_space_1d_editor.cpp | 2 | ||||
-rw-r--r-- | editor/plugins/animation_blend_space_2d_editor.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/animation_blend_space_1d_editor.cpp b/editor/plugins/animation_blend_space_1d_editor.cpp index ae4482155c..2e4dcab203 100644 --- a/editor/plugins/animation_blend_space_1d_editor.cpp +++ b/editor/plugins/animation_blend_space_1d_editor.cpp @@ -83,7 +83,7 @@ void AnimationNodeBlendSpace1DEditor::_blend_space_gui_input(const Ref<InputEven for (const StringName &E : classes) { String name = String(E).replace_first("AnimationNode", ""); - if (name == "Animation") { + if (name == "Animation" || name == "StartState" || name == "EndState") { continue; } diff --git a/editor/plugins/animation_blend_space_2d_editor.cpp b/editor/plugins/animation_blend_space_2d_editor.cpp index 4b7df75aec..86addde87b 100644 --- a/editor/plugins/animation_blend_space_2d_editor.cpp +++ b/editor/plugins/animation_blend_space_2d_editor.cpp @@ -107,7 +107,7 @@ void AnimationNodeBlendSpace2DEditor::_blend_space_gui_input(const Ref<InputEven for (const StringName &E : classes) { String name = String(E).replace_first("AnimationNode", ""); - if (name == "Animation") { + if (name == "Animation" || name == "StartState" || name == "EndState") { continue; // nope } int idx = menu->get_item_count(); |