mirror of https://github.com/godotengine/godot
Merge pull request #85517 from YuriSizov/editor-revert-some-enhancements
Disable a prohibitively slow code branch when reparenting nodes
This commit is contained in:
commit
f89890b69b
|
|
@ -1762,6 +1762,8 @@ bool SceneTreeDock::_check_node_path_recursive(Node *p_root_node, Variant &r_var
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
// FIXME: This approach causes a significant performance regression, see GH-84910.
|
||||||
|
#if 0
|
||||||
case Variant::OBJECT: {
|
case Variant::OBJECT: {
|
||||||
Resource *resource = Object::cast_to<Resource>(r_variant);
|
Resource *resource = Object::cast_to<Resource>(r_variant);
|
||||||
if (!resource) {
|
if (!resource) {
|
||||||
|
|
@ -1792,6 +1794,7 @@ bool SceneTreeDock::_check_node_path_recursive(Node *p_root_node, Variant &r_var
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue