summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Ring <jonnyring@gmail.com>2019-06-20 16:12:58 -0400
committerJon Ring <jonnyring@gmail.com>2019-06-20 16:12:58 -0400
commit9d3089181cca26a601075aa99e677eb4188c31c7 (patch)
treeb63065a346684be5f2d33d047e8fe6f88c547b75
parent0ac3687d6fe3bfa90f5cfbdf7c28752de1b627f0 (diff)
Fix updating of collision shape when the transform is set
-rw-r--r--modules/bullet/collision_object_bullet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bullet/collision_object_bullet.cpp b/modules/bullet/collision_object_bullet.cpp
index 166d7e6158..e1800fd3eb 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 {