From 09924d6d73d63ddc7e953c31bf0d3f9a3b69abdb Mon Sep 17 00:00:00 2001 From: Oliver Dick Date: Sat, 6 Feb 2021 02:41:16 +0100 Subject: [PATCH] Bugfix: Update transform of collision shape on NOTIFICATION_PARENTED (fixes invalid transform of collision shape in cases where the node is not supposed to enter the scene tree) --- scene/3d/collision_shape.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/3d/collision_shape.cpp b/scene/3d/collision_shape.cpp index 9d8351f1a93..64116055d42 100644 --- a/scene/3d/collision_shape.cpp +++ b/scene/3d/collision_shape.cpp @@ -83,6 +83,7 @@ void CollisionShape::_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: {