summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-09-02 14:29:48 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-09-02 14:29:48 +0200
commitd18963485eb53ac78bb606340104615d4096f902 (patch)
treea17701fcbdcec7a21b831b076012d0681fbb6e7e
parentbb61a932c2c67ea54b005832078c42b7cc0bb271 (diff)
parent3a3ebbf4c9ee51550b769ef8251a14b66f3fe183 (diff)
downloadredot-engine-d18963485eb53ac78bb606340104615d4096f902.tar.gz
Merge pull request #81106 from garychia/gridmap_visibility
GridMap: Ensure the visibility is updated when entering the tree
-rw-r--r--modules/gridmap/grid_map.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/gridmap/grid_map.cpp b/modules/gridmap/grid_map.cpp
index 34c53b5de5..4ac143c7ff 100644
--- a/modules/gridmap/grid_map.cpp
+++ b/modules/gridmap/grid_map.cpp
@@ -906,13 +906,14 @@ void GridMap::_notification(int p_what) {
}
} break;
-#ifdef DEBUG_ENABLED
case NOTIFICATION_ENTER_TREE: {
+#ifdef DEBUG_ENABLED
if (bake_navigation && NavigationServer3D::get_singleton()->get_debug_navigation_enabled()) {
_update_navigation_debug_edge_connections();
}
- } break;
#endif // DEBUG_ENABLED
+ _update_visibility();
+ } break;
case NOTIFICATION_TRANSFORM_CHANGED: {
Transform3D new_xform = get_global_transform();