[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59231] branches/soc-2013-rigid_body_sim/ intern/rigidbody/rb_bullet_api.cpp: rigidbody: Fix gimpact shape
Sergej Reich
sergej.reich at googlemail.com
Sun Aug 18 14:29:22 CEST 2013
Revision: 59231
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59231
Author: sergof
Date: 2013-08-18 12:29:22 +0000 (Sun, 18 Aug 2013)
Log Message:
-----------
rigidbody: Fix gimpact shape
Also forgot compound wrapper here
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-08-18 12:29:21 UTC (rev 59230)
+++ branches/soc-2013-rigid_body_sim/intern/rigidbody/rb_bullet_api.cpp 2013-08-18 12:29:22 UTC (rev 59231)
@@ -851,6 +851,12 @@
shape->cshape = gimpactShape;
shape->mesh = tmesh;
+
+ 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