Skip to content

Commit eae5905

Browse files
committed
Merge pull request #112015 from KoBeWi/for_the_path!
Fix file duplication making random UID
2 parents fb7e948 + afe8798 commit eae5905

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/file_system/editor_file_system.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3086,7 +3086,7 @@ Error EditorFileSystem::_copy_file(const String &p_from, const String &p_to) {
30863086
}
30873087

30883088
// Roll a new uid for this copied .import file to avoid conflict.
3089-
ResourceUID::ID res_uid = ResourceUID::get_singleton()->create_id();
3089+
ResourceUID::ID res_uid = ResourceUID::get_singleton()->create_id_for_path(p_to);
30903090

30913091
// Save the new .import file
30923092
Ref<ConfigFile> cfg;

0 commit comments

Comments
 (0)