From 3f9e5afe68df1e3b4bcf34a21468ed55a57a7973 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 18 Sep 2015 23:10:58 -0300 Subject: begin work on debugging collisions.... --- main/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'main') diff --git a/main/main.cpp b/main/main.cpp index 9b7e190e03..69e4dc38ed 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -97,6 +97,7 @@ static OS::VideoMode video_mode; static bool init_maximized=false; static bool init_fullscreen=false; static bool init_use_custom_pos=false; +static bool debug_collisions=false; static Vector2 init_custom_pos; static int video_driver_idx=-1; static int audio_driver_idx=-1; @@ -514,6 +515,8 @@ Error Main::setup(const char *execpath,int argc, char *argv[],bool p_second_phas } else if (I->get()=="-debug" || I->get()=="-d") { debug_mode="local"; + } else if (I->get()=="-debugcol" || I->get()=="-dc") { + debug_collisions=true; } else if (I->get()=="-editor_scene") { if (I->next()) { @@ -1154,8 +1157,12 @@ bool Main::start() { SceneTree *sml = main_loop->cast_to(); + if (debug_collisions) { + sml->set_debug_collisions_hint(true); + } #ifdef TOOLS_ENABLED + EditorNode *editor_node=NULL; if (editor) { -- cgit v1.2.3