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
commit eae590550f
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

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;