[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29841] branches/soc-2010-aligorith-2/ source/blender/makesrna/intern/rna_rigidbody.c: Bullet SoC - Doh!

Joshua Leung aligorith at gmail.com
Thu Jul 1 13:02:43 CEST 2010


Revision: 29841
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29841
Author:   aligorith
Date:     2010-07-01 13:02:43 +0200 (Thu, 01 Jul 2010)

Log Message:
-----------
Bullet SoC - Doh!

Bugfix for crashes when changing collision shapes. Bullet was not being informed about the shape change. 

Modified Paths:
--------------
    branches/soc-2010-aligorith-2/source/blender/makesrna/intern/rna_rigidbody.c

Modified: branches/soc-2010-aligorith-2/source/blender/makesrna/intern/rna_rigidbody.c
===================================================================
--- branches/soc-2010-aligorith-2/source/blender/makesrna/intern/rna_rigidbody.c	2010-07-01 10:52:15 UTC (rev 29840)
+++ branches/soc-2010-aligorith-2/source/blender/makesrna/intern/rna_rigidbody.c	2010-07-01 11:02:43 UTC (rev 29841)
@@ -121,6 +121,10 @@
 	
 	/* force creation of new collision shape reflecting this */
 	BKE_rigidbody_validate_sim_shape(ob, 1);
+	
+	/* now tell RB sim about it */
+	if (rbo->physics_object)
+		rbBodySetCollisionShape(rbo->physics_object, rbo->physics_shape);
 }
 
 





More information about the Bf-blender-cvs mailing list