소스 검색

Print a warning when a nested project is detected

kobewi 2 년 전
부모
커밋
d1a114470c
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      editor/editor_file_system.cpp

+ 3 - 2
editor/editor_file_system.cpp

@@ -2350,12 +2350,13 @@ bool EditorFileSystem::_should_skip_directory(const String &p_path) {
 	}
 
 	if (FileAccess::exists(p_path.path_join("project.godot"))) {
-		// skip if another project inside this
+		// Skip if another project inside this.
+		WARN_PRINT_ONCE(vformat("Detected another project.godot at %s. The folder will be ignored.", p_path));
 		return true;
 	}
 
 	if (FileAccess::exists(p_path.path_join(".gdignore"))) {
-		// skip if a `.gdignore` file is inside this
+		// Skip if a `.gdignore` file is inside this.
 		return true;
 	}