diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-08 07:14:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-08 07:22:15 +0300 |
commit | 46ac288a930673af3cf2a253a933f2663566295d (patch) | |
tree | 81a88134e8404977ef3d60b2e31f89c74e841600 /source/blender/editors/transform/transform_gizmo_extrude_3d.c | |
parent | d86894b9e43a44ed7f9d937325e74859f254ebf2 (diff) |
Cleanup: rename V3D_MANIP_* -> V3D_ORIENT_*
Wasn't obvious it's related to orientation,
also term manipulator is no longer in use.
Diffstat (limited to 'source/blender/editors/transform/transform_gizmo_extrude_3d.c')
-rw-r--r-- | source/blender/editors/transform/transform_gizmo_extrude_3d.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform_gizmo_extrude_3d.c b/source/blender/editors/transform/transform_gizmo_extrude_3d.c index 784f7236af7..ea5c02f35e8 100644 --- a/source/blender/editors/transform/transform_gizmo_extrude_3d.c +++ b/source/blender/editors/transform/transform_gizmo_extrude_3d.c @@ -230,7 +230,7 @@ static void gizmo_mesh_extrude_refresh(const bContext *C, wmGizmoGroup *gzgroup) ggd->data.orientation_type = scene->orientation_slots[SCE_ORIENT_DEFAULT].type; const bool use_normal = ( - (ggd->data.orientation_type != V3D_MANIP_NORMAL) || + (ggd->data.orientation_type != V3D_ORIENT_NORMAL) || (axis_type == EXTRUDE_AXIS_NORMAL)); const int axis_len_used = use_normal ? 4 : 3; @@ -240,7 +240,7 @@ static void gizmo_mesh_extrude_refresh(const bContext *C, wmGizmoGroup *gzgroup) struct TransformBounds tbounds_normal; if (!ED_transform_calc_gizmo_stats( C, &(struct TransformCalcParams){ - .orientation_type = V3D_MANIP_NORMAL + 1, + .orientation_type = V3D_ORIENT_NORMAL + 1, }, &tbounds_normal)) { unit_m3(tbounds_normal.axis); @@ -353,7 +353,7 @@ static void gizmo_mesh_extrude_draw_prepare(const bContext *C, wmGizmoGroup *gzg { GizmoExtrudeGroup *ggd = gzgroup->customdata; switch (ggd->data.orientation_type) { - case V3D_MANIP_VIEW: + case V3D_ORIENT_VIEW: { RegionView3D *rv3d = CTX_wm_region_view3d(C); float mat[3][3]; @@ -401,7 +401,7 @@ static void gizmo_mesh_extrude_invoke_prepare(const bContext *UNUSED(C), wmGizmo if (i == 3) { use_normal_matrix = true; } - else if (ggd->data.orientation_type == V3D_MANIP_NORMAL) { + else if (ggd->data.orientation_type == V3D_ORIENT_NORMAL) { use_normal_matrix = true; } if (use_normal_matrix) { |