Skip to content

Commit

Permalink
Remove SceneTree debug avoidance hint
Browse files Browse the repository at this point in the history
Removes SceneTree debug avoidance hint.
  • Loading branch information
smix8 committed Jun 16, 2023
1 parent 5983785 commit f1d8ddd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
9 changes: 2 additions & 7 deletions main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2965,19 +2965,14 @@ bool Main::start() {
}
if (debug_navigation) {
sml->set_debug_navigation_hint(true);
NavigationServer3D::get_singleton()->set_debug_navigation_enabled(true);
}
if (debug_avoidance) {
sml->set_debug_avoidance_hint(true);
NavigationServer3D::get_singleton()->set_debug_avoidance_enabled(true);
}
if (debug_navigation || debug_avoidance) {
NavigationServer3D::get_singleton()->set_active(true);
NavigationServer3D::get_singleton()->set_debug_enabled(true);
if (debug_navigation) {
NavigationServer3D::get_singleton()->set_debug_navigation_enabled(true);
}
if (debug_avoidance) {
NavigationServer3D::get_singleton()->set_debug_avoidance_enabled(true);
}
}
#endif

Expand Down
8 changes: 0 additions & 8 deletions scene/main/scene_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,14 +737,6 @@ void SceneTree::set_debug_navigation_hint(bool p_enabled) {
bool SceneTree::is_debugging_navigation_hint() const {
return debug_navigation_hint;
}

void SceneTree::set_debug_avoidance_hint(bool p_enabled) {
debug_avoidance_hint = p_enabled;
}

bool SceneTree::is_debugging_avoidance_hint() const {
return debug_avoidance_hint;
}
#endif

void SceneTree::set_debug_collisions_color(const Color &p_color) {
Expand Down
4 changes: 0 additions & 4 deletions scene/main/scene_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ class SceneTree : public MainLoop {
bool debug_collisions_hint = false;
bool debug_paths_hint = false;
bool debug_navigation_hint = false;
bool debug_avoidance_hint = false;
#endif
bool paused = false;
int root_lock = 0;
Expand Down Expand Up @@ -347,9 +346,6 @@ class SceneTree : public MainLoop {

void set_debug_navigation_hint(bool p_enabled);
bool is_debugging_navigation_hint() const;

void set_debug_avoidance_hint(bool p_enabled);
bool is_debugging_avoidance_hint() const;
#else
void set_debug_collisions_hint(bool p_enabled) {}
bool is_debugging_collisions_hint() const { return false; }
Expand Down

0 comments on commit f1d8ddd

Please sign in to comment.