diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-07 22:30:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-07 22:40:51 +0300 |
commit | eefaec41140046c455aa51f22b22fdbdc90e00a6 (patch) | |
tree | 31aaca96a22633b012cd93fcc62aa11cf14bb613 /source/blender/editors/transform | |
parent | 170223804bee3ee2a3fe373ac858d36fe2361570 (diff) |
Extrude Widget: Add orientation to topbar
Add extrude operator that's intended to work on the current selection
and be activated as a tool.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_manipulator_3d.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_manipulator_3d.c b/source/blender/editors/transform/transform_manipulator_3d.c index 5350bf783aa..c3c4abbda37 100644 --- a/source/blender/editors/transform/transform_manipulator_3d.c +++ b/source/blender/editors/transform/transform_manipulator_3d.c @@ -616,8 +616,9 @@ int ED_transform_calc_manipulator_stats( /* global, local or normal orientation? * if we could check 'totsel' now, this should be skipped with no selection. */ if (ob && !is_gp_edit) { + const short orientation_type = params->orientation_type ? (params->orientation_type - 1) : scene->orientation_type; - switch (scene->orientation_type) { + switch (orientation_type) { case V3D_MANIP_GLOBAL: { |