Fix T76045 Gizmo: line_width does not work in latest version

This commit is contained in:
Clément Foucault 2020-05-07 17:38:39 +02:00
parent 4d5af14852
commit 933c721ccb
Notes: blender-bot 2024-03-22 15:57:27 +01:00
Referenced by issue #76045, Gizmo line_width does not work in latest version
1 changed files with 2 additions and 1 deletions

View File

@ -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)));