diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-27 09:25:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-27 09:30:51 +0300 |
commit | 80ef7fbeb15f388097e2f778d41f7280e77779cf (patch) | |
tree | c9667f120a4c63c3da795214de60b83a02b6c98d /release | |
parent | 3f23b5ffd5935b260c79dcf58781d976be814044 (diff) |
Transform: refactor orientation naming and usasge
Transform orientation was previously related to constraints,
recent changes meant it was used even when not constraining to an axis.
Now transform orientation is separate from axis constraints.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/view3d.py | 6 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_operators/view3d.py b/release/scripts/startup/bl_operators/view3d.py index 5ae112e57e4..2dd4b7457ed 100644 --- a/release/scripts/startup/bl_operators/view3d.py +++ b/release/scripts/startup/bl_operators/view3d.py @@ -45,7 +45,7 @@ class VIEW3D_OT_edit_mesh_extrude_individual_move(Operator): bpy.ops.mesh.extrude_region_move( 'INVOKE_REGION_WIN', TRANSFORM_OT_translate={ - "constraint_orientation": 'NORMAL', + "orient_type": 'NORMAL', "constraint_axis": (False, False, True), } ) @@ -92,7 +92,7 @@ class VIEW3D_OT_edit_mesh_extrude_move(Operator): bpy.ops.mesh.extrude_region_move( 'INVOKE_REGION_WIN', TRANSFORM_OT_translate={ - "constraint_orientation": 'NORMAL', + "orient_type": 'NORMAL', "constraint_axis": (False, False, True), }, ) @@ -103,7 +103,7 @@ class VIEW3D_OT_edit_mesh_extrude_move(Operator): TRANSFORM_OT_translate={ # Don't set the constraint axis since users will expect MMB # to use the user setting, see: T61637 - # "constraint_orientation": 'NORMAL', + # "orient_type": 'NORMAL', # Not a popular choice, too restrictive for retopo. # "constraint_axis": (True, True, False)}) "constraint_axis": (False, False, False), diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 7a17cb864c6..d44f0943c30 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -507,26 +507,26 @@ class VIEW3D_MT_mirror(Menu): props = layout.operator("transform.mirror", text="X Global") props.constraint_axis = (True, False, False) - props.constraint_orientation = 'GLOBAL' + props.orient_type = 'GLOBAL' props = layout.operator("transform.mirror", text="Y Global") props.constraint_axis = (False, True, False) - props.constraint_orientation = 'GLOBAL' + props.orient_type = 'GLOBAL' props = layout.operator("transform.mirror", text="Z Global") props.constraint_axis = (False, False, True) - props.constraint_orientation = 'GLOBAL' + props.orient_type = 'GLOBAL' if context.edit_object: layout.separator() props = layout.operator("transform.mirror", text="X Local") props.constraint_axis = (True, False, False) - props.constraint_orientation = 'LOCAL' + props.orient_type = 'LOCAL' props = layout.operator("transform.mirror", text="Y Local") props.constraint_axis = (False, True, False) - props.constraint_orientation = 'LOCAL' + props.orient_type = 'LOCAL' props = layout.operator("transform.mirror", text="Z Local") props.constraint_axis = (False, False, True) - props.constraint_orientation = 'LOCAL' + props.orient_type = 'LOCAL' layout.operator("object.vertex_group_mirror") |