File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,19 @@ void NavigationObstacle3D::_notification(int p_what) {
132132 NavigationServer3D::get_singleton ()->obstacle_set_paused (obstacle, !can_process ());
133133 } break ;
134134
135+ #ifdef DEBUG_ENABLED
136+ case NOTIFICATION_VISIBILITY_CHANGED: {
137+ if (is_inside_tree ()) {
138+ if (fake_agent_radius_debug_instance.is_valid ()) {
139+ RS::get_singleton ()->instance_set_visible (fake_agent_radius_debug_instance, is_visible_in_tree ());
140+ }
141+ if (static_obstacle_debug_instance.is_valid ()) {
142+ RS::get_singleton ()->instance_set_visible (static_obstacle_debug_instance, is_visible_in_tree ());
143+ }
144+ }
145+ } break ;
146+ #endif // DEBUG_ENABLED
147+
135148 case NOTIFICATION_INTERNAL_PHYSICS_PROCESS: {
136149 if (is_inside_tree ()) {
137150 _update_position (get_global_transform ().origin );
You can’t perform that action at this time.
0 commit comments