diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2018-01-17 14:12:37 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2018-01-17 14:12:37 +0300 |
commit | c38ebf93e356a97b3013b075e1d98268df891809 (patch) | |
tree | 60bf31ae85a8c0aebcf5b154be72a945c781024c /release/scripts/startup/bl_ui/space_graph.py | |
parent | 7935a394b7a8ab924a6431f6fb839913ea0129f6 (diff) |
Added "Delete Invalid Drivers" operator
This operator is available in the graph editor in the Drivers mode, and
allows quick cleanup of drivers marked as 'invalid'.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_graph.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_graph.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_graph.py b/release/scripts/startup/bl_ui/space_graph.py index 4938512070e..e2407f1f2b2 100644 --- a/release/scripts/startup/bl_ui/space_graph.py +++ b/release/scripts/startup/bl_ui/space_graph.py @@ -201,6 +201,8 @@ class GRAPH_MT_channel(Menu): layout.operator_context = 'INVOKE_REGION_CHANNELS' layout.operator("anim.channels_delete") + if context.space_data.mode == 'DRIVERS': + layout.operator("graph.driver_delete_invalid") layout.separator() layout.operator("anim.channels_group") |