소스 검색

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) {