Merge pull request #78336 from smix8/st_debug_avoidance_hint_4.x

Remove SceneTree debug avoidance hint
This commit is contained in:
Rémi Verschelde 2023-06-16 20:16:12 +02:00
commit 1d22e040cb
No known key found for this signature in database
GPG Key ID: C3336907360768E1
3 changed files with 2 additions and 19 deletions

View File

@ -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

View File

@ -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) {

View File

@ -132,7 +132,6 @@ private:
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;
@ -347,9 +346,6 @@ public:
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; }