[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58491] branches/soc-2013-rigid_body_sim/ intern/rigidbody/rb_bullet_api.cpp: rigidbody: Fix convex hull shape
Sergej Reich
sergej.reich at googlemail.com
Mon Jul 22 09:20:28 CEST 2013
Revision: 58491
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58491
Author: sergof
Date: 2013-07-22 07:20:28 +0000 (Mon, 22 Jul 2013)
Log Message:
-----------
rigidbody: Fix convex hull shape
Missed adding compound shape wrapper.
Modified Paths:
--------------
branches/soc-2013-rigid_body_sim/intern/rigidbody/rb_bullet_api.cpp
Modified: branches/soc-2013-rigid_body_sim/intern/rigidbody/rb_bullet_api.cpp
===================================================================
--- branches/soc-2013-rigid_body_sim/intern/rigidbody/rb_bullet_api.cpp 2013-07-22 07:20:27 UTC (rev 58490)
+++ branches/soc-2013-rigid_body_sim/intern/rigidbody/rb_bullet_api.cpp 2013-07-22 07:20:28 UTC (rev 58491)
@@ -752,6 +752,12 @@
shape->cshape = hull_shape;
shape->mesh = NULL;
+
+ shape->compound = new btCompoundShape();
+ btTransform compound_transform;
+ compound_transform.setIdentity();
+ ((btCompoundShape*)shape->compound)->addChildShape(compound_transform, shape->cshape);
+
return shape;
}
More information about the Bf-blender-cvs
mailing list