1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-21 14:57:09 +00:00

Add check in folding to see if the nodepath exists to avoid message spam.

This commit is contained in:
K. S. Ernest (iFire) Lee
2019-01-29 08:15:34 -08:00
parent 35bb52011a
commit b83c3827f3
4 changed files with 8 additions and 7 deletions

View File

@@ -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;
}