[Bf-blender-cvs] [c589d90d832] blender-v2.82-release: Fix T73369: corner pin & sun-beam nodes gizmos are too big

Campbell Barton noreply at git.blender.org
Tue Mar 10 14:07:24 CET 2020


Commit: c589d90d832f51066248021df91a7df0a450217e
Author: Campbell Barton
Date:   Tue Mar 10 23:07:07 2020 +1100
Branches: blender-v2.82-release
https://developer.blender.org/rBc589d90d832f51066248021df91a7df0a450217e

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 76e8b5ca7df..70327ac3d85 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