Add check in folding to see if the nodepath exists to avoid message spam.
This commit is contained in:
parent
35bb52011a
commit
b83c3827f3
4 changed files with 8 additions and 7 deletions
|
|
@ -173,7 +173,7 @@ void EditorFolding::load_scene_folding(Node *p_scene, const String &p_path) {
|
|||
for (int i = 0; i < unfolds.size(); i += 2) {
|
||||
NodePath path = unfolds[i];
|
||||
PoolVector<String> un = unfolds[i + 1];
|
||||
Node *node = p_scene->get_node(path);
|
||||
Node *node = p_scene->get_node_or_null(path);
|
||||
if (!node) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue