[Bf-blender-cvs] [933c721ccbe] blender-v2.83-release: Fix T76045 Gizmo: line_width does not work in latest version

Clément Foucault noreply at git.blender.org
Thu May 7 23:33:05 CEST 2020


Commit: 933c721ccbe32e97e6125eb1068d9cdca1b33de6
Author: Clément Foucault
Date:   Thu May 7 17:38:39 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB933c721ccbe32e97e6125eb1068d9cdca1b33de6

Fix T76045 Gizmo: line_width does not work in latest version

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

M	source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c

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

diff --git a/source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c
index 9c95f82eaf2..374b7b1f6a2 100644
--- a/source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c
+++ b/source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c
@@ -106,7 +106,8 @@ static void move_geom_draw(const wmGizmo *gz,
   wm_gizmo_geometryinfo_draw(&wm_gizmo_geom_data_move3d, select);
 #else
   const int draw_style = RNA_enum_get(gz->ptr, "draw_style");
-  const bool filled = ((draw_options & (select ? (ED_GIZMO_MOVE_DRAW_FLAG_FILL |
+  const bool filled = (draw_style != ED_GIZMO_MOVE_STYLE_CROSS_2D) &&
+                      ((draw_options & (select ? (ED_GIZMO_MOVE_DRAW_FLAG_FILL |
                                                   ED_GIZMO_MOVE_DRAW_FLAG_FILL_SELECT) :
                                                  ED_GIZMO_MOVE_DRAW_FLAG_FILL)));



More information about the Bf-blender-cvs mailing list