Skip to content

Commit c58fbaf

Browse files
committed
Merge pull request #100340 from smix8/csg_3d_child_notify
Fix 3D CSG not reacting to child node order changes
2 parents 9535cd0 + 20c519d commit c58fbaf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/csg/csg_shape.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,10 @@ void CSGShape3D::_notification(int p_what) {
848848
parent_shape = nullptr;
849849
} break;
850850

851+
case NOTIFICATION_CHILD_ORDER_CHANGED: {
852+
_make_dirty();
853+
} break;
854+
851855
case NOTIFICATION_VISIBILITY_CHANGED: {
852856
if (!is_root_shape() && last_visible != is_visible()) {
853857
// Update this node's parent only if its own visibility has changed, not the visibility of parent nodes

0 commit comments

Comments
 (0)