Преглед изворни кода

Merge pull request #29938 from jonri/fix-collisionshape-scale

Fix updating of collision shape when the transform is set
Rémi Verschelde пре 6 година
родитељ
комит
603e87e2bb
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      modules/bullet/collision_object_bullet.cpp

+ 1 - 1
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());
 	ERR_FAIL_INDEX(p_index, get_shape_count());
 
 
 	shapes.write[p_index].set_transform(p_transform);
 	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 {
 const btTransform &RigidCollisionObjectBullet::get_bt_shape_transform(int p_index) const {