From afe87983e0cb2707a7850f5cf49ee600b93ebccb Mon Sep 17 00:00:00 2001 From: kobewi Date: Fri, 24 Oct 2025 23:03:52 +0200 Subject: [PATCH] Fix file duplication making random UID --- editor/file_system/editor_file_system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/file_system/editor_file_system.cpp b/editor/file_system/editor_file_system.cpp index 6d7ef269014..bac46196d60 100644 --- a/editor/file_system/editor_file_system.cpp +++ b/editor/file_system/editor_file_system.cpp @@ -3086,7 +3086,7 @@ Error EditorFileSystem::_copy_file(const String &p_from, const String &p_to) { } // Roll a new uid for this copied .import file to avoid conflict. - ResourceUID::ID res_uid = ResourceUID::get_singleton()->create_id(); + ResourceUID::ID res_uid = ResourceUID::get_singleton()->create_id_for_path(p_to); // Save the new .import file Ref cfg;