[Bf-blender-cvs] [9d529407dae] master: UI: only wrap cursor motion horizontally when dragging markers

Campbell Barton noreply at git.blender.org
Thu Mar 3 05:56:24 CET 2022


Commit: 9d529407dae77efa552aad99fe3a38a78f70b41e
Author: Campbell Barton
Date:   Thu Mar 3 15:48:41 2022 +1100
Branches: master
https://developer.blender.org/rB9d529407dae77efa552aad99fe3a38a78f70b41e

UI: only wrap cursor motion horizontally when dragging markers

It's not useful to wrap vertical motion when dragging markers.
It was too easy to accidentally wrap the cursor to the top of a region,
as markers need to be dragged from the bottom edge of the region.

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

M	source/blender/editors/animation/anim_markers.c

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

diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c
index 162495c0c7e..2cb8dab59ef 100644
--- a/source/blender/editors/animation/anim_markers.c
+++ b/source/blender/editors/animation/anim_markers.c
@@ -1037,7 +1037,7 @@ static void MARKER_OT_move(wmOperatorType *ot)
   ot->cancel = ed_marker_move_cancel;
 
   /* flags */
-  ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_BLOCKING | OPTYPE_GRAB_CURSOR_XY;
+  ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_BLOCKING | OPTYPE_GRAB_CURSOR_X;
 
   /* rna storage */
   RNA_def_int(ot->srna, "frames", 0, INT_MIN, INT_MAX, "Frames", "", INT_MIN, INT_MAX);



More information about the Bf-blender-cvs mailing list