[Bf-blender-cvs] [212660f4674] master: Fix T73369: corner pin & sun-beam nodes gizmos are too big

Campbell Barton noreply at git.blender.org
Tue Mar 10 13:32:03 CET 2020


Commit: 212660f467451b0092fcebcb44591c92c09acbc9
Author: Campbell Barton
Date:   Tue Mar 10 23:07:07 2020 +1100
Branches: master
https://developer.blender.org/rB212660f467451b0092fcebcb44591c92c09acbc9

Fix T73369: corner pin & sun-beam nodes gizmos are too big

Note that dragging isn't working well,
however this was an issue in previous releases.

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

M	source/blender/editors/space_node/node_gizmo.c

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

diff --git a/source/blender/editors/space_node/node_gizmo.c b/source/blender/editors/space_node/node_gizmo.c
index 3048c14dddb..e20cadf21a3 100644
--- a/source/blender/editors/space_node/node_gizmo.c
+++ b/source/blender/editors/space_node/node_gizmo.c
@@ -459,7 +459,7 @@ static void WIDGETGROUP_node_sbeam_setup(const bContext *UNUSED(C), wmGizmoGroup
 
   RNA_enum_set(gz->ptr, "draw_style", ED_GIZMO_MOVE_STYLE_CROSS_2D);
 
-  gz->scale_basis = 0.05f;
+  gz->scale_basis = 0.05f / 75.0f;
 
   gzgroup->customdata = sbeam_group;
 }
@@ -566,7 +566,7 @@ static void WIDGETGROUP_node_corner_pin_setup(const bContext *UNUSED(C), wmGizmo
 
     RNA_enum_set(gz->ptr, "draw_style", ED_GIZMO_MOVE_STYLE_CROSS_2D);
 
-    gz->scale_basis = 0.01f;
+    gz->scale_basis = 0.01f / 75.0;
   }
 
   gzgroup->customdata = cpin_group;



More information about the Bf-blender-cvs mailing list