Selaa lähdekoodia

Merge pull request #31182 from mitchcurtis/remove_child

 Improve error message in Node::remove_child()
Rémi Verschelde 6 vuotta sitten
vanhempi
commit
f0ad034a1d
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      scene/main/node.cpp

+ 1 - 0
scene/main/node.cpp

@@ -1265,6 +1265,7 @@ void Node::remove_child(Node *p_child) {
 		}
 	}
 
+	ERR_EXPLAIN("Cannot remove child node " + p_child->to_string() + " as it is not in our list of children");
 	ERR_FAIL_COND(idx == -1);
 	//ERR_FAIL_COND( p_child->data.blocked > 0 );