[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54497] trunk/blender/source/blender/ makesrna/intern/rna_rigidbody.c: rigidbody: No need to update mass when changing rigid body type

Sergej Reich sergej.reich at googlemail.com
Tue Feb 12 15:46:00 CET 2013


Revision: 54497
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54497
Author:   sergof
Date:     2013-02-12 14:45:59 +0000 (Tue, 12 Feb 2013)
Log Message:
-----------
rigidbody: No need to update mass when changing rigid body type

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_rigidbody.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_rigidbody.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_rigidbody.c	2013-02-12 14:45:57 UTC (rev 54496)
+++ trunk/blender/source/blender/makesrna/intern/rna_rigidbody.c	2013-02-12 14:45:59 UTC (rev 54497)
@@ -163,13 +163,6 @@
 	
 	rbo->type = value;
 	rbo->flag |= RBO_FLAG_NEEDS_VALIDATE;
-	
-#ifdef WITH_BULLET
-	/* do physics sim updates */
-	if (rbo->physics_object) {
-		RB_body_set_mass(rbo->physics_object, RBO_GET_MASS(rbo));
-	}
-#endif
 }
 
 static void rna_RigidBodyOb_disabled_set(PointerRNA *ptr, int value)




More information about the Bf-blender-cvs mailing list