Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergej Reich <sergej.reich@googlemail.com>2013-02-12 18:45:59 +0400
committerSergej Reich <sergej.reich@googlemail.com>2013-02-12 18:45:59 +0400
commitc3c4ef3c6f09f10b29074225e412ae7ce67e8955 (patch)
tree33ca9a26d8efae4edc826953c5a59213795cf7c1 /source/blender/makesrna
parent92b6a54e5036db83146a3e28de78b65d5c4cffc5 (diff)
rigidbody: No need to update mass when changing rigid body type
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_rigidbody.c7
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)