[Bf-blender-cvs] [5fac99ca7a1] blender2.8: Manipulator: use offset-scale for lamp target
Campbell Barton
noreply at git.blender.org
Wed Aug 9 15:48:29 CEST 2017
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)
More information about the Bf-blender-cvs
mailing list