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 16:49:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-08-09 16:49:27 +0300
commit5fac99ca7a1943260bbb293b926ede7deb7f039c (patch)
treefe589e7fa729b32f4045b28e52db3957fc5c7d85 /source/blender/editors/space_view3d
parent2f20b5242cc40abbfa2b3a6580b068c5504805aa (diff)
Manipulator: use offset-scale for lamp target
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r--source/blender/editors/space_view3d/view3d_manipulator_lamp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_manipulator_lamp.c b/source/blender/editors/space_view3d/view3d_manipulator_lamp.c
index ff4b0842981..dfe06ec4e66 100644
--- a/source/blender/editors/space_view3d/view3d_manipulator_lamp.c
+++ b/source/blender/editors/space_view3d/view3d_manipulator_lamp.c
@@ -275,6 +275,7 @@ static void WIDGETGROUP_lamp_target_draw_prepare(const bContext *C, wmManipulato
copy_m4_m4(mpr->matrix_basis, ob->obmat);
unit_m4(mpr->matrix_offset);
mpr->matrix_offset[3][2] = -2.4f / mpr->scale_basis;
+ WM_manipulator_set_flag(mpr, WM_MANIPULATOR_DRAW_OFFSET_SCALE, true);
}
void VIEW3D_WGT_lamp_target(wmManipulatorGroupType *wgt)