Commit: 5fac99ca7a1943260bbb293b926ede7deb7f039c
Author: Campbell Barton
Date:   Wed Aug 9 23:49:27 2017 +1000
Branches: blender2.8
https://developer.blender.org/rB5fac99ca7a1943260bbb293b926ede7deb7f039c

Manipulator: use offset-scale for lamp target

===================================================================

M       source/blender/editors/space_view3d/view3d_manipulator_lamp.c

===================================================================

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)

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to