Removes start/end states from menus
This commit is contained in:
parent
ecde7ce834
commit
e363fdeed9
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue