Fix drag-dropping nodes to parent with internal nodes

This commit is contained in:
kleonc
2023-06-29 00:46:11 +02:00
parent 950f4c3b41
commit 3f6e35bdb2
3 changed files with 37 additions and 17 deletions

View File

@@ -1340,6 +1340,10 @@ void Node::_generate_serial_child_name(const Node *p_child, StringName &name) co
}
}
Node::InternalMode Node::get_internal_mode() const {
return data.internal_mode;
}
void Node::_add_child_nocheck(Node *p_child, const StringName &p_name, InternalMode p_internal_mode) {
//add a child node quickly, without name validation