Removes start/end states from menus

This commit is contained in:
Guilherme Felipe de C. G. da Silva 2022-06-04 15:13:07 -03:00
parent ecde7ce834
commit e363fdeed9
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ void AnimationNodeBlendSpace1DEditor::_blend_space_gui_input(const Ref<InputEven
for (const StringName &E : classes) { for (const StringName &E : classes) {
String name = String(E).replace_first("AnimationNode", ""); String name = String(E).replace_first("AnimationNode", "");
if (name == "Animation") { if (name == "Animation" || name == "StartState" || name == "EndState") {
continue; continue;
} }

View File

@ -107,7 +107,7 @@ void AnimationNodeBlendSpace2DEditor::_blend_space_gui_input(const Ref<InputEven
for (const StringName &E : classes) { for (const StringName &E : classes) {
String name = String(E).replace_first("AnimationNode", ""); String name = String(E).replace_first("AnimationNode", "");
if (name == "Animation") { if (name == "Animation" || name == "StartState" || name == "EndState") {
continue; // nope continue; // nope
} }
int idx = menu->get_item_count(); int idx = menu->get_item_count();