Skip to content

Commit

Permalink
Merge pull request #81106 from garychia/gridmap_visibility
Browse files Browse the repository at this point in the history
GridMap: Ensure the visibility is updated when entering the tree
  • Loading branch information
akien-mga committed Sep 2, 2023
2 parents bb61a93 + 3a3ebbf commit d189634
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/gridmap/grid_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d189634

Please sign in to comment.