EditMesh: show XYZ axis for extrude

Always show normal axis since this is the most used,
even when another orientation is selected.
This commit is contained in:
Campbell Barton
2018-05-13 17:53:31 +02:00
parent e0a4624acd
commit dc4f94783d
2 changed files with 93 additions and 35 deletions

View File

@@ -397,12 +397,6 @@ class _defs_edit_mesh:
@ToolDef.from_fn
def extrude():
def draw_settings(context, layout):
wm = context.window_manager
props = wm.operator_properties_last("mesh.extrude_context_move")
props_xform = props.TRANSFORM_OT_translate
layout.prop(props_xform, "constraint_orientation")
return dict(
text="Extrude Region",
icon="ops.mesh.extrude_region_move",
@@ -411,7 +405,6 @@ class _defs_edit_mesh:
("mesh.extrude_context_move", dict(TRANSFORM_OT_translate=dict(release_confirm=True)),
dict(type='ACTIONMOUSE', value='PRESS')),
),
draw_settings=draw_settings,
)
@ToolDef.from_fn