소스 검색

Merge pull request #84797 from akien-mga/silence-warning-about-skipping-dirs-with-godot-project

Remove EditorFileDialog warning when skipping project directories
Rémi Verschelde 1 년 전
부모
커밋
4123f1371f
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      editor/editor_file_system.cpp

+ 3 - 1
editor/editor_file_system.cpp

@@ -2369,7 +2369,9 @@ bool EditorFileSystem::_should_skip_directory(const String &p_path) {
 
 	if (FileAccess::exists(p_path.path_join("project.godot"))) {
 		// Skip if another project inside this.
-		WARN_PRINT_ONCE(vformat("Detected another project.godot at %s. The folder will be ignored.", p_path));
+		if (EditorFileSystem::get_singleton()->first_scan) {
+			WARN_PRINT_ONCE(vformat("Detected another project.godot at %s. The folder will be ignored.", p_path));
+		}
 		return true;
 	}