Merge pull request #25467 from fire/folding_spam

Add check in folding to see if the nodepath exists to avoid message spam and expose get_node_or_null
This commit is contained in:
Rémi Verschelde
2019-02-08 10:13:36 +01:00
committed by GitHub
4 changed files with 8 additions and 7 deletions
+1 -1
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;
}