mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-24 12:47:12 +01:00
Add missing argument to AnimationNodeBlendTreeEditor::_delete_nodes_request
This commit is contained in:
parent
a32008c1ea
commit
8c306efe22
@ -492,13 +492,19 @@ void AnimationNodeBlendTreeEditor::_delete_request(const String &p_which) {
|
|||||||
void AnimationNodeBlendTreeEditor::_delete_nodes_request(const Array &p_nodes) {
|
void AnimationNodeBlendTreeEditor::_delete_nodes_request(const Array &p_nodes) {
|
||||||
List<StringName> to_erase;
|
List<StringName> to_erase;
|
||||||
|
|
||||||
for (int i = 0; i < graph->get_child_count(); i++) {
|
if (p_nodes.empty()) {
|
||||||
GraphNode *gn = Object::cast_to<GraphNode>(graph->get_child(i));
|
for (int i = 0; i < graph->get_child_count(); i++) {
|
||||||
if (gn) {
|
GraphNode *gn = Object::cast_to<GraphNode>(graph->get_child(i));
|
||||||
if (gn->is_selected() && gn->is_close_button_visible()) {
|
if (gn) {
|
||||||
to_erase.push_back(gn->get_name());
|
if (gn->is_selected() && gn->is_close_button_visible()) {
|
||||||
|
to_erase.push_back(gn->get_name());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
for (int i = 0; i < p_nodes.size(); i++) {
|
||||||
|
to_erase.push_back(p_nodes[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (to_erase.empty()) {
|
if (to_erase.empty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user