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
This commit is contained in:
Submodule release/scripts/addons updated: 534bf3b76c...b3f0ffc587
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user