diff options
author | Oliver Dick <oliver.dick@evilstorm.de> | 2021-02-06 20:17:01 +0100 |
---|---|---|
committer | Oliver Dick <oliver.dick@evilstorm.de> | 2021-02-06 20:17:01 +0100 |
commit | f1432f27889c721af6732712533de1c4d3eba76c (patch) | |
tree | 052c68877b69a825119e1b379c7bc57001f961d5 /scene/3d | |
parent | fa2f7693bb9efc44755b1b693b22ec2788910a0d (diff) |
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)
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/collision_shape_3d.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/3d/collision_shape_3d.cpp b/scene/3d/collision_shape_3d.cpp index 503d1be104..c3e879a634 100644 --- a/scene/3d/collision_shape_3d.cpp +++ b/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: { |