[Bf-blender-cvs] [0f51b5b599b] master: Animation: Add Operator for adding FCurve modifiers to more menus

Christoph Lendenfeld noreply at git.blender.org
Fri Feb 3 13:06:19 CET 2023


Commit: 0f51b5b599bbd26d4ddbb702b38563b03a50d6e5
Author: Christoph Lendenfeld
Date:   Fri Feb 3 13:06:15 2023 +0100
Branches: master
https://developer.blender.org/rB0f51b5b599bbd26d4ddbb702b38563b03a50d6e5

Animation: Add Operator for adding FCurve modifiers to more menus

The operator has the option to add to selected FCurves instead
of only the active, but it was only exposed in the redo panel.
This patch adds the operator to the right-click menu on FCurve channels,
and to the channel menu in the Graph editor.
Both times with configured to add to selected
instead of only the active FCurve

Revied by Reviewed by: Sybren A. Stüvel
Differential Revision: https://developer.blender.org/D17066
Ref: D17066

===================================================================

M	release/scripts/addons
M	release/scripts/startup/bl_ui/space_dopesheet.py
M	release/scripts/startup/bl_ui/space_graph.py

===================================================================

diff --git a/release/scripts/addons b/release/scripts/addons
index 534bf3b76c3..b3f0ffc587d 160000
--- a/release/scripts/addons
+++ b/release/scripts/addons
@@ -1 +1 @@
-Subproject commit 534bf3b76c3b5f3bcd21641f1d53c1062bedcdbe
+Subproject commit b3f0ffc587d197b37eac9a1566d1d24b7bee7d9a
diff --git a/release/scripts/startup/bl_ui/space_dopesheet.py b/release/scripts/startup/bl_ui/space_dopesheet.py
index 99b33840051..af9b9e527e6 100644
--- a/release/scripts/startup/bl_ui/space_dopesheet.py
+++ b/release/scripts/startup/bl_ui/space_dopesheet.py
@@ -708,6 +708,9 @@ class DOPESHEET_MT_channel_context_menu(Menu):
             operator = "action.extrapolation_type"
         layout.operator_menu_enum(operator, "type", text="Extrapolation Mode")
 
+        if is_graph_editor:
+            layout.operator_menu_enum("graph.fmodifier_add", "type", text="Add F-Curve Modifier").only_active = False
+
         layout.separator()
         layout.operator("anim.channels_expand")
         layout.operator("anim.channels_collapse")
diff --git a/release/scripts/startup/bl_ui/space_graph.py b/release/scripts/startup/bl_ui/space_graph.py
index b2c8822a75d..5a550acd107 100644
--- a/release/scripts/startup/bl_ui/space_graph.py
+++ b/release/scripts/startup/bl_ui/space_graph.py
@@ -222,6 +222,7 @@ class GRAPH_MT_channel(Menu):
         layout.separator()
         layout.operator("anim.channels_editable_toggle")
         layout.operator_menu_enum("graph.extrapolation_type", "type", text="Extrapolation Mode")
+        layout.operator_menu_enum("graph.fmodifier_add", "type", text="Add F-Curve Modifier").only_active = False
 
         layout.separator()
         layout.operator("graph.hide", text="Hide Selected Curves").unselected = False



More information about the Bf-blender-cvs mailing list