From dc0251df72ee113fa157086e4e13d0ef8f5f054d Mon Sep 17 00:00:00 2001 From: Christoph Lendenfeld Date: Tue, 2 May 2023 21:38:57 +0200 Subject: [PATCH] Fix: Graph Editor - add operator flags for cursor wrapping The slider operators in the Graph Editor were missing operator flags for the cursor wrapping to work. I've added it to the operators that allow overshoot, because for those it is really important to have no limits on scrolling. Pull Request: https://projects.blender.org/blender/blender/pulls/107435 --- source/blender/editors/space_graph/graph_slider_ops.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/blender/editors/space_graph/graph_slider_ops.c b/source/blender/editors/space_graph/graph_slider_ops.c index f5d26e1fd17..87ae62f3033 100644 --- a/source/blender/editors/space_graph/graph_slider_ops.c +++ b/source/blender/editors/space_graph/graph_slider_ops.c @@ -679,7 +679,7 @@ void GRAPH_OT_blend_to_neighbor(wmOperatorType *ot) ot->poll = graphop_editable_keyframes_poll; /* Flags. */ - ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_BLOCKING | OPTYPE_GRAB_CURSOR_X; RNA_def_float_factor(ot->srna, "factor", @@ -764,7 +764,7 @@ void GRAPH_OT_breakdown(wmOperatorType *ot) ot->poll = graphop_editable_keyframes_poll; /* Flags. */ - ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_BLOCKING | OPTYPE_GRAB_CURSOR_X; RNA_def_float_factor(ot->srna, "factor", @@ -869,7 +869,7 @@ void GRAPH_OT_blend_to_default(wmOperatorType *ot) ot->poll = graphop_editable_keyframes_poll; /* Flags. */ - ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_BLOCKING | OPTYPE_GRAB_CURSOR_X; RNA_def_float_factor(ot->srna, "factor", @@ -954,7 +954,7 @@ void GRAPH_OT_ease(wmOperatorType *ot) ot->poll = graphop_editable_keyframes_poll; /* Flags. */ - ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_BLOCKING | OPTYPE_GRAB_CURSOR_X; RNA_def_float_factor(ot->srna, "factor",