[Bf-blender-cvs] [b2608af7025] master: Gizmo: match the DOF gizmo size with the non-gizmo indicator

Campbell Barton noreply at git.blender.org
Mon Aug 26 09:13:15 CEST 2019


Commit: b2608af7025f4d41e12a0ceaf73087903f02e23f
Author: Campbell Barton
Date:   Mon Aug 26 17:10:22 2019 +1000
Branches: master
https://developer.blender.org/rBb2608af7025f4d41e12a0ceaf73087903f02e23f

Gizmo: match the DOF gizmo size with the non-gizmo indicator

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

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

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

diff --git a/source/blender/editors/space_view3d/view3d_gizmo_camera.c b/source/blender/editors/space_view3d/view3d_gizmo_camera.c
index eebfdaf38ff..42931d5abb5 100644
--- a/source/blender/editors/space_view3d/view3d_gizmo_camera.c
+++ b/source/blender/editors/space_view3d/view3d_gizmo_camera.c
@@ -100,7 +100,7 @@ static void WIDGETGROUP_camera_setup(const bContext *C, wmGizmoGroup *gzgroup)
     wmGizmo *gz;
     gz = cagzgroup->dop_dist = WM_gizmo_new_ptr(gzt_arrow, gzgroup, NULL);
     RNA_enum_set(gz->ptr, "draw_style", ED_GIZMO_ARROW_STYLE_CROSS);
-    WM_gizmo_set_flag(gz, WM_GIZMO_DRAW_HOVER, true);
+    WM_gizmo_set_flag(gz, WM_GIZMO_DRAW_HOVER | WM_GIZMO_DRAW_NO_SCALE, true);
 
     UI_GetThemeColor3fv(TH_GIZMO_A, gz->color);
     UI_GetThemeColor3fv(TH_GIZMO_HI, gz->color_hi);



More information about the Bf-blender-cvs mailing list