Feature Request: "Show Errors" Filter for Anim Editors now works for
authorJoshua Leung <aligorith@gmail.com>
Wed, 6 Mar 2013 00:56:58 +0000 (00:56 +0000)
committerJoshua Leung <aligorith@gmail.com>
Wed, 6 Mar 2013 00:56:58 +0000 (00:56 +0000)
F-Curves/Animation as well as Drivers

This is useful for tracking down invalid F-Curves which might need to have their
paths fixed, or perhaps to remove F-Curves for controls which no longer exist in
a new rig.

release/scripts/startup/bl_ui/space_dopesheet.py

index adeae9d..2ad5724 100644 (file)
@@ -29,7 +29,6 @@ from bpy.types import Header, Menu
 def dopesheet_filter(layout, context, genericFiltersOnly=False):
     dopesheet = context.space_data.dopesheet
     is_nla = context.area.type == 'NLA_EDITOR'
-    is_drivers = (context.area.type == 'GRAPH_EDITOR' and context.space_data.mode == 'DRIVERS')
 
     row = layout.row(align=True)
     row.prop(dopesheet, "show_only_selected", text="")
@@ -37,8 +36,7 @@ def dopesheet_filter(layout, context, genericFiltersOnly=False):
 
     if is_nla:
         row.prop(dopesheet, "show_missing_nla", text="")
-
-    if is_drivers:
+    else: # graph and dopesheet editors - F-Curves and drivers only
         row.prop(dopesheet, "show_only_errors", text="")
 
     if not genericFiltersOnly: