浏览代码

Remove corresponding .uid file when removing file

kobewi 11 月之前
父节点
当前提交
0875523f6b
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      editor/editor_file_system.cpp

+ 3 - 0
editor/editor_file_system.cpp

@@ -1516,6 +1516,9 @@ void EditorFileSystem::_delete_internal_files(const String &p_file) {
 		}
 		da->remove(p_file + ".import");
 	}
+	if (FileAccess::exists(p_file + ".uid")) {
+		DirAccess::remove_absolute(p_file + ".uid");
+	}
 }
 
 int EditorFileSystem::_insert_actions_delete_files_directory(EditorFileSystemDirectory *p_dir) {