diff options
author | Sergej Reich <sergej.reich@googlemail.com> | 2013-02-06 01:51:20 +0400 |
---|---|---|
committer | Sergej Reich <sergej.reich@googlemail.com> | 2013-02-06 01:51:20 +0400 |
commit | b64858cade5b604b88df23d47b2c25f6e992da47 (patch) | |
tree | 812364899507750984932eb97a4f4e8a07a4ff8c /release | |
parent | 83b8cbeab1584581b0601941e2b0581a209bb88b (diff) |
rigidbody: Use ARROWS empty draw type when creating constraints
Since we don't have constraint visualization yet, it's useful to see
where the individual axes point.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/rigidbody.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/rigidbody.py b/release/scripts/startup/bl_operators/rigidbody.py index 94465fa6561..161349152d5 100644 --- a/release/scripts/startup/bl_operators/rigidbody.py +++ b/release/scripts/startup/bl_operators/rigidbody.py @@ -234,7 +234,9 @@ class ConnectRigidBodies(Operator): 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_add() - con = context.active_object.rigid_body_constraint + con_obj = context.active_object + con_obj.empty_draw_type = 'ARROWS' + con = con_obj.rigid_body_constraint con.type = self.con_type con.object1 = obj_act con.object2 = obj |