You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Editor does not crash anymore if a non root node in escn is missing a parent
This commit is contained in:
@@ -92,6 +92,8 @@ Node *SceneState::instance(GenEditState p_edit_state) const {
|
||||
|
||||
if (i > 0) {
|
||||
|
||||
ERR_EXPLAIN(vformat("Invalid scene: node %s does not specify its parent node.", snames[n.name]))
|
||||
ERR_FAIL_COND_V(n.parent == -1, NULL)
|
||||
NODE_FROM_ID(nparent, n.parent);
|
||||
#ifdef DEBUG_ENABLED
|
||||
if (!nparent && (n.parent & FLAG_ID_IS_PATH)) {
|
||||
|
||||
Reference in New Issue
Block a user