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:
authorCampbell Barton <campbell@blender.org>2022-03-03 07:48:41 +0300
committerCampbell Barton <campbell@blender.org>2022-03-03 07:48:41 +0300
commit9d529407dae77efa552aad99fe3a38a78f70b41e (patch)
tree17d5119f103b53a248621d5daec579b488bad159 /source/blender/editors/animation
parentd764448f73b9ea135e4851e1326ee07b9c54a41c (diff)
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.
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r--source/blender/editors/animation/anim_markers.c2
1 files changed, 1 insertions, 1 deletions
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);