diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-15 09:29:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-15 09:29:16 +0300 |
commit | a9d8474fda7f9cc9db52b505cae854db9870d1ce (patch) | |
tree | 9cf59068648de153044755417acc2f1a42b6c30e /source/blender/windowmanager/gizmo/WM_gizmo_types.h | |
parent | 5005210f407b8f3426c0137a70443b2e53a02be1 (diff) |
Gizmo: add depth bias for 3D selection
This allows some gizmos priority over others even when they're behind.
Diffstat (limited to 'source/blender/windowmanager/gizmo/WM_gizmo_types.h')
-rw-r--r-- | source/blender/windowmanager/gizmo/WM_gizmo_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/windowmanager/gizmo/WM_gizmo_types.h b/source/blender/windowmanager/gizmo/WM_gizmo_types.h index 1c298f378a4..7d38194db1b 100644 --- a/source/blender/windowmanager/gizmo/WM_gizmo_types.h +++ b/source/blender/windowmanager/gizmo/WM_gizmo_types.h @@ -198,6 +198,10 @@ struct wmGizmo { /** For single click button gizmos, use a different part as a fallback, -1 when unused. */ int drag_part; + /** Distance to bias this gizmo above others when picking + * (in worldspace, scaled by the gizmo scale - when used). */ + float select_bias; + /** * Transformation of the gizmo in 2d or 3d space. * - Matrix axis are expected to be unit length (scale is applied after). |