From 9085b4a731fd5315eb97c00fc4bbf7c163698ebc Mon Sep 17 00:00:00 2001 From: Christoph Lendenfeld Date: Sat, 25 Dec 2021 13:40:53 +0100 Subject: Blend To Neighbor Implementation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- release/scripts/addons | 2 +- release/scripts/startup/bl_ui/space_graph.py | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'release') diff --git a/release/scripts/addons b/release/scripts/addons index c60fef38175..c08568cc376 160000 --- a/release/scripts/addons +++ b/release/scripts/addons @@ -1 +1 @@ -Subproject commit c60fef38175ad989ee0c45e924cb27e1417c8667 +Subproject commit c08568cc376d2e4298710c4172fb0c74f0611de1 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, -- cgit v1.2.3