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:
parent
cc23b6abd6
commit
0f51b5b599
Notes:
blender-bot
2023-08-24 15:12:31 +02:00
Referenced by pull request #111378, Fix #108782: Fcurve Modifer shortcut does not work in channels region
Referenced by commit 44ba616614
, Fix #108782: Fcurve Modifer shortcut does not work in channels region
|
@ -1 +1 @@
|
|||
Subproject commit 534bf3b76c3b5f3bcd21641f1d53c1062bedcdbe
|
||||
Subproject commit b3f0ffc587d197b37eac9a1566d1d24b7bee7d9a
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue