summaryrefslogtreecommitdiffstats
path: root/scene
diff options
context:
space:
mode:
authorsmix8 <52464204+smix8@users.noreply.github.com>2024-05-23 20:01:47 +0200
committersmix8 <52464204+smix8@users.noreply.github.com>2024-05-23 20:01:47 +0200
commita545ba0bb7054161fc32851a3c80d3c275600e91 (patch)
tree676e36099304f70cb9506297b1671f80b3cd6f06 /scene
parentb947c53ddc08d4314b2ce70ca1bc2adb37b83c37 (diff)
downloadredot-engine-a545ba0bb7054161fc32851a3c80d3c275600e91.tar.gz
Fix NavigationRegion3D not reacting to runtime debug enabled change
Fixes NavigationRegion3D not reacting when the main debug enabled property got changed as it only looked at the navigation mesh specific debug.
Diffstat (limited to 'scene')
-rw-r--r--scene/3d/navigation_region_3d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/navigation_region_3d.cpp b/scene/3d/navigation_region_3d.cpp
index 856c52b5d5..40e04f0fb4 100644
--- a/scene/3d/navigation_region_3d.cpp
+++ b/scene/3d/navigation_region_3d.cpp
@@ -474,7 +474,7 @@ void NavigationRegion3D::_update_debug_mesh() {
return;
}
- if (!NavigationServer3D::get_singleton()->get_debug_navigation_enabled()) {
+ if (!NavigationServer3D::get_singleton()->get_debug_enabled() || !NavigationServer3D::get_singleton()->get_debug_navigation_enabled()) {
if (debug_instance.is_valid()) {
RS::get_singleton()->instance_set_visible(debug_instance, false);
}
@@ -640,7 +640,7 @@ void NavigationRegion3D::_update_debug_mesh() {
#ifdef DEBUG_ENABLED
void NavigationRegion3D::_update_debug_edge_connections_mesh() {
- if (!NavigationServer3D::get_singleton()->get_debug_navigation_enabled()) {
+ if (!NavigationServer3D::get_singleton()->get_debug_enabled() || !NavigationServer3D::get_singleton()->get_debug_navigation_enabled()) {
if (debug_edge_connections_instance.is_valid()) {
RS::get_singleton()->instance_set_visible(debug_edge_connections_instance, false);
}