diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-05-07 18:38:39 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-05-08 00:33:01 +0300 |
commit | 933c721ccbe32e97e6125eb1068d9cdca1b33de6 (patch) | |
tree | 7ec318d4a72eb456255291adf0a10197812b73b8 | |
parent | 4d5af14852250c79d113dd4bd4c93fefd984c232 (diff) |
Fix T76045 Gizmo: line_width does not work in latest version
-rw-r--r-- | source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c | 3 |
1 files changed, 2 insertions, 1 deletions
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))); |