瀏覽代碼

Merge pull request #100340 from smix8/csg_3d_child_notify

Fix 3D CSG not reacting to child node order changes
Thaddeus Crews 9 月之前
父節點
當前提交
c58fbaf751
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      modules/csg/csg_shape.cpp

+ 4 - 0
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