diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-25 07:40:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-25 07:40:43 +0300 |
commit | b67c3a0db9173ac400b1d0593a72f2aa23c66bab (patch) | |
tree | c660321e6484a42fa3f578e122ed320546f4d062 /source/blender/editors/include | |
parent | f3cff06087c717669e28c60adbac13deca939645 (diff) |
Gizmo: add option to move & dial gizmos to select as filled
Draw as an outline while using solid selection.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_gizmo_library.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/editors/include/ED_gizmo_library.h b/source/blender/editors/include/ED_gizmo_library.h index 53b65292b6a..48effda37ef 100644 --- a/source/blender/editors/include/ED_gizmo_library.h +++ b/source/blender/editors/include/ED_gizmo_library.h @@ -184,10 +184,11 @@ enum { ED_GIZMO_DIAL_DRAW_FLAG_NOP = 0, ED_GIZMO_DIAL_DRAW_FLAG_CLIP = (1 << 0), ED_GIZMO_DIAL_DRAW_FLAG_FILL = (1 << 1), - ED_GIZMO_DIAL_DRAW_FLAG_ANGLE_MIRROR = (1 << 2), - ED_GIZMO_DIAL_DRAW_FLAG_ANGLE_START_Y = (1 << 3), + ED_GIZMO_DIAL_DRAW_FLAG_FILL_SELECT = (1 << 2), + ED_GIZMO_DIAL_DRAW_FLAG_ANGLE_MIRROR = (1 << 3), + ED_GIZMO_DIAL_DRAW_FLAG_ANGLE_START_Y = (1 << 4), /* Always show the angle value as an arc in the dial. */ - ED_GIZMO_DIAL_DRAW_FLAG_ANGLE_VALUE = (1 << 4), + ED_GIZMO_DIAL_DRAW_FLAG_ANGLE_VALUE = (1 << 5), }; /* -------------------------------------------------------------------- */ @@ -198,7 +199,8 @@ enum { ED_GIZMO_MOVE_DRAW_FLAG_NOP = 0, /* only for solid shapes */ ED_GIZMO_MOVE_DRAW_FLAG_FILL = (1 << 0), - ED_GIZMO_MOVE_DRAW_FLAG_ALIGN_VIEW = (1 << 1), + ED_GIZMO_MOVE_DRAW_FLAG_FILL_SELECT = (1 << 1), + ED_GIZMO_MOVE_DRAW_FLAG_ALIGN_VIEW = (1 << 2), }; enum { @@ -245,6 +247,7 @@ void ED_gizmotypes_dial_3d_draw_util( const float matrix_final[4][4], const float line_width, const float color[4], + const bool select, struct Dial3dParams *params); #endif /* __ED_GIZMO_LIBRARY_H__ */ |