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-10 09:35:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-08-10 09:35:45 +0300
commit464c045b31b54d284da59efa71530fb6092696d3 (patch)
treeec1e252d3f212453e6a874683559d1a9a96b85cc /source/blender/editors/space_view3d/view3d_manipulator_lamp.c
parent8520cb4af022fd3a0db44cff2b70815fdc235ae9 (diff)
Manipulator: grab3d option to align to view
Use for lamp-target, makes it easier to click on.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_manipulator_lamp.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_manipulator_lamp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_manipulator_lamp.c b/source/blender/editors/space_view3d/view3d_manipulator_lamp.c
index dfe06ec4e66..9454ff1e158 100644
--- a/source/blender/editors/space_view3d/view3d_manipulator_lamp.c
+++ b/source/blender/editors/space_view3d/view3d_manipulator_lamp.c
@@ -260,9 +260,13 @@ static void WIDGETGROUP_lamp_target_setup(const bContext *UNUSED(C), wmManipulat
UI_GetThemeColor3fv(TH_MANIPULATOR_PRIMARY, mpr->color);
UI_GetThemeColor3fv(TH_MANIPULATOR_HI, mpr->color_hi);
- mpr->scale_basis = 0.05f;
+ mpr->scale_basis = 0.06f;
wmOperatorType *ot = WM_operatortype_find("OBJECT_OT_transform_axis_target", true);
+
+ RNA_enum_set(mpr->ptr, "draw_options",
+ ED_MANIPULATOR_GRAB_DRAW_FLAG_FILL | ED_MANIPULATOR_GRAB_DRAW_FLAG_ALIGN_VIEW);
+
WM_manipulator_set_operator(mpr, ot, NULL);
}