We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fde0616 + 38ecaec commit 4ef0cd6Copy full SHA for 4ef0cd6
editor/editor_file_system.cpp
@@ -913,6 +913,12 @@ bool EditorFileSystem::_update_scan_actions() {
913
// Re-assign the UID to file, just in case it was pulled from cache.
914
ResourceSaver::set_uid(new_file_path, existing_id);
915
}
916
+ } else if (ResourceLoader::should_create_uid_file(new_file_path)) {
917
+ Ref<FileAccess> f = FileAccess::open(new_file_path + ".uid", FileAccess::WRITE);
918
+ if (f.is_valid()) {
919
+ ia.new_file->uid = ResourceUID::get_singleton()->create_id();
920
+ f->store_line(ResourceUID::get_singleton()->id_to_text(ia.new_file->uid));
921
+ }
922
923
924
if (ClassDB::is_parent_class(ia.new_file->type, SNAME("Script"))) {
0 commit comments