diff options
author | Sergej Reich <sergej.reich@googlemail.com> | 2013-01-28 15:56:01 +0400 |
---|---|---|
committer | Sergej Reich <sergej.reich@googlemail.com> | 2013-01-28 15:56:01 +0400 |
commit | 753890d0e80fc5b3ab16b42478e6226de4c80c36 (patch) | |
tree | 6eeb2512bac3a36b1137965883497acb037cfe6e /release/scripts/startup/bl_operators/rigidbody.py | |
parent | f44b7868c5fd68d4b713d0c5c4136206c33af0e1 (diff) |
rigidbody: Don't show dialog for "Connect" operator
Use redo last panel to change settings now.
This is more in line with how the rest of blender operates.
Also fix tootip
Diffstat (limited to 'release/scripts/startup/bl_operators/rigidbody.py')
-rw-r--r-- | release/scripts/startup/bl_operators/rigidbody.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_operators/rigidbody.py b/release/scripts/startup/bl_operators/rigidbody.py index 03dd2c9118a..d334e404a5d 100644 --- a/release/scripts/startup/bl_operators/rigidbody.py +++ b/release/scripts/startup/bl_operators/rigidbody.py @@ -190,7 +190,7 @@ class BakeToKeyframes(Operator): class ConnectRigidBodies(Operator): - '''Create rigid body constraint between two selected rigid bodies''' + '''Create rigid body constraints between selected and active rigid bodies''' bl_idname = "rigidbody.connect" bl_label = "Connect Rigid Bodies" bl_options = {'REGISTER', 'UNDO'} @@ -237,9 +237,10 @@ class ConnectRigidBodies(Operator): con.type = self.con_type con.object1 = obj_act con.object2 = obj + # restore selection + bpy.ops.object.select_all(action='DESELECT') + for obj in objs: + obj.select = True; + bpy.context.scene.objects.active = obj_act return {'FINISHED'} - - def invoke(self, context, event): - wm = context.window_manager - return wm.invoke_props_dialog(self) |