You've already forked godot
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user