1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #112015 from KoBeWi/for_the_path!

Fix file duplication making random UID
This commit is contained in:
Thaddeus Crews
2025-10-27 10:01:30 -05:00

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;