diff options
author | Christoph Lendenfeld <chris.lend@gmx.at> | 2021-12-25 15:40:53 +0300 |
---|---|---|
committer | Christoph Lendenfeld <chris.lend@gmx.at> | 2021-12-25 15:40:53 +0300 |
commit | 9085b4a731fd5315eb97c00fc4bbf7c163698ebc (patch) | |
tree | 7d24710d413d7cea5ef1e808306a19fc8080ca4a /release | |
parent | e505957b47a9db99b958fa02325074120f129c94 (diff) |
Blend To Neighbor Implementation
This patch adds the blend to neighbor operator to the Graph editor.
The operator acts like the blend to neighbor operator for a pose context, just working on keyframes.
Reviewed by: Sybren A. Stüvel
Differential Revision: https://developer.blender.org/D9374
Ref: D9374
Diffstat (limited to 'release')
m--------- | release/scripts/addons | 0 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_graph.py | 11 |
2 files changed, 11 insertions, 0 deletions
diff --git a/release/scripts/addons b/release/scripts/addons -Subproject c60fef38175ad989ee0c45e924cb27e1417c866 +Subproject c08568cc376d2e4298710c4172fb0c74f0611de diff --git a/release/scripts/startup/bl_ui/space_graph.py b/release/scripts/startup/bl_ui/space_graph.py index 1562870d64f..497d68f88ca 100644 --- a/release/scripts/startup/bl_ui/space_graph.py +++ b/release/scripts/startup/bl_ui/space_graph.py @@ -298,6 +298,8 @@ class GRAPH_MT_key(Menu): layout.operator("graph.decimate", text="Decimate (Allowed Change)").mode = 'ERROR' layout.operator_context = operator_context + layout.menu("GRAPH_MT_slider", text="Slider Operators") + layout.operator("graph.clean").channels = False layout.operator("graph.clean", text="Clean Channels").channels = True layout.operator("graph.smooth") @@ -337,6 +339,14 @@ class GRAPH_MT_key_snap(Menu): layout.operator("graph.frame_jump", text="Cursor to Selection") layout.operator("graph.snap_cursor_value", text="Cursor Value to Selection") +class GRAPH_MT_slider(Menu): + bl_label = "Slider Operators" + + def draw(self, _context): + layout = self.layout + + layout.operator("graph.blend_to_neighbor", text="Blend To Neighbor") + class GRAPH_MT_view_pie(Menu): bl_label = "View" @@ -475,6 +485,7 @@ classes = ( GRAPH_MT_key, GRAPH_MT_key_transform, GRAPH_MT_key_snap, + GRAPH_MT_slider, GRAPH_MT_delete, GRAPH_MT_context_menu, GRAPH_MT_channel_context_menu, |