From 20c519d0fad06486543021d640de2385b72e29a3 Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Fri, 13 Dec 2024 00:28:42 +0100 Subject: [PATCH] Fix 3D CSG not reacting to child node order changes Fixes 3D CSG not reacting to child node order changes. --- modules/csg/csg_shape.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index c30c7b8bcbd8..fba255acbeda 100644 --- a/modules/csg/csg_shape.cpp +++ b/modules/csg/csg_shape.cpp @@ -848,6 +848,10 @@ void CSGShape3D::_notification(int p_what) { parent_shape = nullptr; } break; + case NOTIFICATION_CHILD_ORDER_CHANGED: { + _make_dirty(); + } break; + case NOTIFICATION_VISIBILITY_CHANGED: { if (!is_root_shape() && last_visible != is_visible()) { // Update this node's parent only if its own visibility has changed, not the visibility of parent nodes