1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-28 16:07:14 +00:00

Fix file duplication making random UID

This commit is contained in:
kobewi
2025-10-24 23:03:52 +02:00
parent ab6c6eece8
commit afe87983e0

View File

@@ -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<ConfigFile> cfg;