1
0
Fork 0

Merge pull request #100340 from smix8/csg_3d_child_notify

Fix 3D CSG not reacting to child node order changes
This commit is contained in:
Thaddeus Crews 2024-12-13 16:19:33 -06:00
commit c58fbaf751
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84
1 changed files with 4 additions and 0 deletions

View File

@ -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