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-01-25 10:26:38 +0400
committerSergej Reich <sergej.reich@googlemail.com>2013-01-25 10:26:38 +0400
commit204ec89bff751092f0ca97320456e49107b6e15f (patch)
tree2e69d290d2d6374045f3e702b9b64d37187a5f47 /release/scripts
parent5c8a978d1f3d7d887c2ecccfdfc5a198ac0d37d1 (diff)
rigidbody: Improve add/remove operators
Now all add/remove operators for rigid body objects and constraints automatically add objects to the appropriate groups and create groups if they don't exist yet. This makes handling rigid bodies easier but doesn't take away functionality. If users want to handle groups manually they just need to create them before adding any objects. The previous behaviour was confusing and was even considered to be a bug since clicking on rigid body in the physics tab seemed to do nothing.
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_operators/rigidbody.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/rigidbody.py b/release/scripts/startup/bl_operators/rigidbody.py
index e4335069867..bad86163932 100644
--- a/release/scripts/startup/bl_operators/rigidbody.py
+++ b/release/scripts/startup/bl_operators/rigidbody.py
@@ -238,7 +238,7 @@ class ConnectRigidBodies(Operator):
else:
loc = (obj_act.location + obj.location) / 2.0
bpy.ops.object.add(type='EMPTY', view_align=False, enter_editmode=False, location=loc)
- bpy.ops.rigidbody.constraint_group_add()
+ bpy.ops.rigidbody.constraint_add()
con = context.active_object.rigid_body_constraint
con.type = self.con_type
con.object1 = obj_act