1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-04 19:21:46 +00:00

Merge pull request #58258 from Calinou/editor-doctool-auto-headless

Make `--doctool` imply `--headless` to speed up class reference generation
This commit is contained in:
Rémi Verschelde
2022-05-06 19:32:09 +02:00
committed by GitHub

View File

@@ -998,6 +998,11 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
} else if (I->get() == "--doctool") {
// Actually handling is done in start().
cmdline_tool = true;
// `--doctool` implies `--headless` to avoid spawning an unnecessary window
// and speed up class reference generation.
audio_driver = "Dummy";
display_driver = "headless";
main_args.push_back(I->get());
#endif
} else if (I->get() == "--path") { // set path of project to start or edit