1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Add Path2D/3D debug options

Add Path2D/3D debug options.
This commit is contained in:
smix8
2022-06-15 23:24:06 +02:00
parent 421d8b716d
commit e12e239ab4
11 changed files with 204 additions and 9 deletions

View File

@@ -59,11 +59,16 @@ Error EditorRun::run(const String &p_scene) {
args.push_back(itos(OS::get_singleton()->get_process_id()));
bool debug_collisions = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_debug_collisons", false);
bool debug_paths = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_debug_paths", false);
bool debug_navigation = EditorSettings::get_singleton()->get_project_metadata("debug_options", "run_debug_navigation", false);
if (debug_collisions) {
args.push_back("--debug-collisions");
}
if (debug_paths) {
args.push_back("--debug-paths");
}
if (debug_navigation) {
args.push_back("--debug-navigation");
}