Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/windowmanager/gizmo/WM_gizmo_types.h')
-rw-r--r--source/blender/windowmanager/gizmo/WM_gizmo_types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/windowmanager/gizmo/WM_gizmo_types.h b/source/blender/windowmanager/gizmo/WM_gizmo_types.h
index 5398c262c72..cd8bcc6696b 100644
--- a/source/blender/windowmanager/gizmo/WM_gizmo_types.h
+++ b/source/blender/windowmanager/gizmo/WM_gizmo_types.h
@@ -199,6 +199,12 @@ struct wmGizmo {
* -1 when unset, otherwise a valid index. (Used as index to 'op_data'). */
int highlight_part;
+ /**
+ * For gizmos that differentiate between click & drag,
+ * use a different part for any drag events, -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;