瀏覽代碼

Merge pull request #45774 from revilo/fix-45694

Bugfix: Update transform of collision shape on NOTIFICATION_PARENTED …
Rémi Verschelde 4 年之前
父節點
當前提交
74be478895
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scene/3d/collision_shape_3d.cpp

+ 1 - 0
scene/3d/collision_shape_3d.cpp

@@ -93,6 +93,7 @@ void CollisionShape3D::_notification(int p_what) {
 				if (shape.is_valid()) {
 					parent->shape_owner_add_shape(owner_id, shape);
 				}
+				_update_in_shape_owner();
 			}
 		} break;
 		case NOTIFICATION_ENTER_TREE: {