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:
authorJoshua Leung <aligorith@gmail.com>2014-04-27 19:19:17 +0400
committerJoshua Leung <aligorith@gmail.com>2014-04-28 04:47:22 +0400
commitb33953593b5dabeb60a3065db82c3dc35ba2e0f9 (patch)
tree95f30c0862d0251c6f9769cf7aa79522b7bf773f /source/blender/editors/space_graph/graph_buttons.c
parenta8eb95c4e9d680caa2904405504a27b301a57db0 (diff)
Graph Editor: Added buttons for editing handle types on the active keyframe (from NKEY region)
Diffstat (limited to 'source/blender/editors/space_graph/graph_buttons.c')
-rw-r--r--source/blender/editors/space_graph/graph_buttons.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/editors/space_graph/graph_buttons.c b/source/blender/editors/space_graph/graph_buttons.c
index df2da0e78ed..d139ec0bfa2 100644
--- a/source/blender/editors/space_graph/graph_buttons.c
+++ b/source/blender/editors/space_graph/graph_buttons.c
@@ -342,6 +342,11 @@ static void graph_panel_key_properties(const bContext *C, Panel *pa)
&bezt_ptr, "handle_left", 1, 0, 0, -1, -1, NULL);
uiButSetFunc(but, graphedit_activekey_handles_cb, fcu, bezt);
uiButSetUnitType(but, unit);
+
+ /* XXX: with label? */
+ but = uiDefButR(block, MENU, B_REDR, NULL, 0, 0, UI_UNIT_X, UI_UNIT_Y,
+ &bezt_ptr, "handle_left_type", 0, 0, 0, -1, -1, "Type of left handle");
+ uiButSetFunc(but, graphedit_activekey_handles_cb, fcu, bezt);
}
/* next handle - only if current is Bezier interpolation */
@@ -356,6 +361,11 @@ static void graph_panel_key_properties(const bContext *C, Panel *pa)
&bezt_ptr, "handle_right", 1, 0, 0, -1, -1, NULL);
uiButSetFunc(but, graphedit_activekey_handles_cb, fcu, bezt);
uiButSetUnitType(but, unit);
+
+ /* XXX: with label? */
+ but = uiDefButR(block, MENU, B_REDR, NULL, 0, 0, UI_UNIT_X, UI_UNIT_Y,
+ &bezt_ptr, "handle_right_type", 0, 0, 0, -1, -1, "Type of right handle");
+ uiButSetFunc(but, graphedit_activekey_handles_cb, fcu, bezt);
}
}
else {