Disable a prohibitively slow code branch when reparenting nodes

This commit is contained in:
Yuri Sizov 2023-11-29 17:39:39 +01:00
parent c17d73f140
commit 3a67eb2675
1 changed files with 3 additions and 0 deletions

View File

@ -1762,6 +1762,8 @@ bool SceneTreeDock::_check_node_path_recursive(Node *p_root_node, Variant &r_var
}
} break;
// FIXME: This approach causes a significant performance regression, see GH-84910.
#if 0
case Variant::OBJECT: {
Resource *resource = Object::cast_to<Resource>(r_variant);
if (!resource) {
@ -1792,6 +1794,7 @@ bool SceneTreeDock::_check_node_path_recursive(Node *p_root_node, Variant &r_var
}
break;
};
#endif
default: {
}