diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-09-14 05:49:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-09-14 05:49:36 +0300 |
commit | 917a972b56af103aee406dfffe1f42745b5ad360 (patch) | |
tree | 2a43ab308d544420675c4104588c381cd1447d1c /source/blender/makesdna | |
parent | 9b0b78d58fe55276b9b83cbb8a2c570cd215ed0a (diff) |
UI: keep navigation gizmos visible during modal operators
Hiding viewport navigation gizmos caused the UI to "flicker"
unnecessarily, the axis could also be useful as a reference.
Resolves T73684
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_view3d_types.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h index 4d88f6f0c15..fbf087ca392 100644 --- a/source/blender/makesdna/DNA_view3d_types.h +++ b/source/blender/makesdna/DNA_view3d_types.h @@ -610,6 +610,14 @@ enum { V3D_GIZMO_HIDE_TOOL = (1 << 3), }; +/** + * Hide these gizmos when modal operators are active, + * the intention is to hide all gizmos except for navigation since from a user-perspective + * these are closer to UI-level interface elements. Hiding them makes the UI flicker, also, + * the 3D view-axis can be useful to see during interactions. + */ +#define V3D_GIZMO_HIDE_DEFAULT_MODAL (V3D_GIZMO_HIDE_CONTEXT | V3D_GIZMO_HIDE_TOOL) + /** #View3d.gizmo_show_object */ enum { V3D_GIZMO_SHOW_OBJECT_TRANSLATE = (1 << 0), |