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:
authorChristoph Lendenfeld <chris.lend@gmx.at>2021-12-25 15:40:53 +0300
committerChristoph Lendenfeld <chris.lend@gmx.at>2021-12-25 15:40:53 +0300
commit9085b4a731fd5315eb97c00fc4bbf7c163698ebc (patch)
tree7d24710d413d7cea5ef1e808306a19fc8080ca4a /release/scripts/startup/bl_ui/space_graph.py
parente505957b47a9db99b958fa02325074120f129c94 (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/scripts/startup/bl_ui/space_graph.py')
-rw-r--r--release/scripts/startup/bl_ui/space_graph.py11
1 files changed, 11 insertions, 0 deletions
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,