diff options
author | Sergej Reich <sergej.reich@googlemail.com> | 2013-02-12 18:45:59 +0400 |
---|---|---|
committer | Sergej Reich <sergej.reich@googlemail.com> | 2013-02-12 18:45:59 +0400 |
commit | c3c4ef3c6f09f10b29074225e412ae7ce67e8955 (patch) | |
tree | 33ca9a26d8efae4edc826953c5a59213795cf7c1 /source/blender/makesrna/intern/rna_rigidbody.c | |
parent | 92b6a54e5036db83146a3e28de78b65d5c4cffc5 (diff) |
rigidbody: No need to update mass when changing rigid body type
Diffstat (limited to 'source/blender/makesrna/intern/rna_rigidbody.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_rigidbody.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/makesrna/intern/rna_rigidbody.c b/source/blender/makesrna/intern/rna_rigidbody.c index b737410bbab..7270ccadb81 100644 --- a/source/blender/makesrna/intern/rna_rigidbody.c +++ b/source/blender/makesrna/intern/rna_rigidbody.c @@ -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) |