1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-02 16:48:55 +00:00

Always enable Make Unique for previewed overrides

This commit is contained in:
kobewi
2025-11-23 12:35:21 +01:00
parent 235a32ad11
commit 11e97cace5
3 changed files with 7 additions and 0 deletions

View File

@@ -1369,6 +1369,9 @@ void EditorResourcePicker::_duplicate_selected_resources() {
}
bool EditorResourcePicker::_is_uniqueness_enabled(bool p_check_recursive) {
if (force_allow_unique) {
return true;
}
Ref<Resource> parent_resource = _has_parent_resource();
EditorNode *en = EditorNode::get_singleton();
bool internal_to_scene = en->is_resource_internal_to_scene(edited_resource);