Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-08-09 08:27:08 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-08-09 11:07:55 +0300
commitd186ab6560414d9a817a84cc31a0a73f340c571c (patch)
treecd65bac30e8302ef0d18d747e996ced44e6f19ed /source/blender/editors/transform/transform_manipulator.c
parentf0d4420cc0624da5238a317cfa3d08204c35a3dc (diff)
Manipulator: grab3d - support for 2d views
Also internal changes so arrow3d matches grab3d's behavior. Needed to add WM_MANIPULATOR_DRAW_OFFSET_SCALE flag so we can optionally apply offset in worldspace or screen scaled values.
Diffstat (limited to 'source/blender/editors/transform/transform_manipulator.c')
-rw-r--r--source/blender/editors/transform/transform_manipulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_manipulator.c b/source/blender/editors/transform/transform_manipulator.c
index 5b4eebc963f..cddb7113361 100644
--- a/source/blender/editors/transform/transform_manipulator.c
+++ b/source/blender/editors/transform/transform_manipulator.c
@@ -1310,6 +1310,7 @@ static void WIDGETGROUP_manipulator_refresh(const bContext *C, wmManipulatorGrou
WM_manipulator_set_matrix_rotation_from_z_axis(axis, rv3d->twmat[aidx_norm]);
RNA_float_set(axis->ptr, "length", len);
WM_manipulator_set_matrix_offset_location(axis, start_co);
+ WM_manipulator_set_flag(axis, WM_MANIPULATOR_DRAW_OFFSET_SCALE, true);
break;
}
case MAN_AXIS_ROT_X: