From 9d3089181cca26a601075aa99e677eb4188c31c7 Mon Sep 17 00:00:00 2001 From: Jon Ring Date: Thu, 20 Jun 2019 16:12:58 -0400 Subject: [PATCH] Fix updating of collision shape when the transform is set --- modules/bullet/collision_object_bullet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/bullet/collision_object_bullet.cpp b/modules/bullet/collision_object_bullet.cpp index 166d7e61588..e1800fd3eb6 100644 --- a/modules/bullet/collision_object_bullet.cpp +++ b/modules/bullet/collision_object_bullet.cpp @@ -305,7 +305,7 @@ void RigidCollisionObjectBullet::set_shape_transform(int p_index, const Transfor ERR_FAIL_INDEX(p_index, get_shape_count()); shapes.write[p_index].set_transform(p_transform); - reload_shapes(); + shape_changed(p_index); } const btTransform &RigidCollisionObjectBullet::get_bt_shape_transform(int p_index) const {