From f99939e2ff209aa660ebddc6ba175b959a2be7a8 Mon Sep 17 00:00:00 2001 From: Pratik Borhade Date: Wed, 20 Mar 2024 12:55:13 +0100 Subject: [PATCH] Cleanup: Remove redo panel drawing code of graph select handle Since there is no special case for drawing redo panel, this callback is not required. Panel will be generated automatically because `undo` and `register` flags are added to operator. This improves alignment in redo panel. Pull Request: https://projects.blender.org/blender/blender/pulls/119494 --- source/blender/editors/space_graph/graph_select.cc | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/source/blender/editors/space_graph/graph_select.cc b/source/blender/editors/space_graph/graph_select.cc index c8ec51e750b..a3b4f4ecb17 100644 --- a/source/blender/editors/space_graph/graph_select.cc +++ b/source/blender/editors/space_graph/graph_select.cc @@ -2183,19 +2183,6 @@ static int graphkeys_select_key_handles_exec(bContext *C, wmOperator *op) return OPERATOR_FINISHED; } -static void graphkeys_select_key_handles_ui(bContext * /*C*/, wmOperator *op) -{ - uiLayout *layout = op->layout; - uiLayout *row; - - row = uiLayoutRow(layout, false); - uiItemR(row, op->ptr, "left_handle_action", UI_ITEM_NONE, nullptr, ICON_NONE); - row = uiLayoutRow(layout, false); - uiItemR(row, op->ptr, "right_handle_action", UI_ITEM_NONE, nullptr, ICON_NONE); - row = uiLayoutRow(layout, false); - uiItemR(row, op->ptr, "key_action", UI_ITEM_NONE, nullptr, ICON_NONE); -} - void GRAPH_OT_select_key_handles(wmOperatorType *ot) { /* identifiers */ @@ -2207,7 +2194,6 @@ void GRAPH_OT_select_key_handles(wmOperatorType *ot) /* callbacks */ ot->poll = graphop_visible_keyframes_poll; ot->exec = graphkeys_select_key_handles_exec; - ot->ui = graphkeys_select_key_handles_ui; /* flags */ ot->flag = OPTYPE_UNDO | OPTYPE_REGISTER;