summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-06-24 22:58:28 +0200
committerGitHub <noreply@github.com>2019-06-24 22:58:28 +0200
commit603e87e2bb28e9f344dec479ca546978b820e1f9 (patch)
tree21260f2456d9e3845bfa2c49e543cb60311f3ca9
parentfd895f4bc0569670f07b7c4ce349a2f596fdcee0 (diff)
parent9d3089181cca26a601075aa99e677eb4188c31c7 (diff)
Merge pull request #29938 from jonri/fix-collisionshape-scale
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 {