File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -513,7 +513,7 @@ Ref<ConcavePolygonShape3D> CSGShape3D::bake_collision_shape() {
513513}
514514
515515bool CSGShape3D::_is_debug_collision_shape_visible () {
516- return is_inside_tree () && ( get_tree ()-> is_debugging_collisions_hint () || Engine::get_singleton ()->is_editor_hint () );
516+ return ! Engine::get_singleton ()-> is_editor_hint () && is_inside_tree () && get_tree ()->is_debugging_collisions_hint ( );
517517}
518518
519519void CSGShape3D::_update_debug_collision_shape () {
@@ -604,11 +604,6 @@ void CSGShape3D::_notification(int p_what) {
604604 // Update this node's parent only if its own visibility has changed, not the visibility of parent nodes
605605 parent_shape->_make_dirty ();
606606 }
607- if (is_visible ()) {
608- _update_debug_collision_shape ();
609- } else {
610- _clear_debug_collision_shape ();
611- }
612607 last_visible = is_visible ();
613608 } break ;
614609
You can’t perform that action at this time.
0 commit comments