Commit: 3c54a613947ee4dc2b1a9280fbebd27a76c7224a
Author: Sergey Sharybin
Date:   Mon May 16 15:20:27 2022 +0200
Branches: tracking_tools
https://developer.blender.org/rB3c54a613947ee4dc2b1a9280fbebd27a76c7224a

Tracking: Improve selection during Add Marker and tweak tool

Allow selection by clicking an edge of patter/search marker areas.

The transform-tweak should behave as it was before for RMB selection.
The LMB selection will not have tweak transform in this tool.

===================================================================

M       source/blender/editors/space_clip/tracking_select.c

===================================================================

diff --git a/source/blender/editors/space_clip/tracking_select.c 
b/source/blender/editors/space_clip/tracking_select.c
index b6d458a7780..0e3acbe0c95 100644
--- a/source/blender/editors/space_clip/tracking_select.c
+++ b/source/blender/editors/space_clip/tracking_select.c
@@ -407,6 +407,13 @@ static int select_exec(bContext *C, wmOperator *op)
   WM_event_add_notifier(C, NC_GEOM | ND_SELECT, NULL);
   DEG_id_tag_update(&clip->id, ID_RECALC_SELECT);
 
+  /* This is a bit implicit, but when the selection operator is used from a 
LMB Add Marker and
+   * tweak tool we do not want the pass-through here and only want selection 
to happen. This way
+   * the selection operator will not fall-through to Add Marker operator. */
+  if (activate_selected) {
+    return OPERATOR_FINISHED;
+  }
+
   /* Pass-through + finished to allow tweak to transform. */
   return OPERATOR_FINISHED | OPERATOR_PASS_THROUGH;
 }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to