rigidbody: No need to update mass when changing rigid body type
authorSergej Reich <sergej.reich@googlemail.com>
Tue, 12 Feb 2013 14:45:59 +0000 (14:45 +0000)
committerSergej Reich <sergej.reich@googlemail.com>
Tue, 12 Feb 2013 14:45:59 +0000 (14:45 +0000)
source/blender/makesrna/intern/rna_rigidbody.c

index b737410bbab654a2c66092b2fdf48c5b506a5fed..7270ccadb811ee8ca565a8907cdbda8dd52b2f80 100644 (file)
@@ -163,13 +163,6 @@ static void rna_RigidBodyOb_type_set(PointerRNA *ptr, int value)
        
        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)