forked from bartvdbraak/blender
Feature Request: "Show Errors" Filter for Anim Editors now works for
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.
This commit is contained in:
parent
0a83879538
commit
11dbadb442
@ -29,7 +29,6 @@ from bpy.types import Header, Menu
|
|||||||
def dopesheet_filter(layout, context, genericFiltersOnly=False):
|
def dopesheet_filter(layout, context, genericFiltersOnly=False):
|
||||||
dopesheet = context.space_data.dopesheet
|
dopesheet = context.space_data.dopesheet
|
||||||
is_nla = context.area.type == 'NLA_EDITOR'
|
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 = layout.row(align=True)
|
||||||
row.prop(dopesheet, "show_only_selected", text="")
|
row.prop(dopesheet, "show_only_selected", text="")
|
||||||
@ -37,8 +36,7 @@ def dopesheet_filter(layout, context, genericFiltersOnly=False):
|
|||||||
|
|
||||||
if is_nla:
|
if is_nla:
|
||||||
row.prop(dopesheet, "show_missing_nla", text="")
|
row.prop(dopesheet, "show_missing_nla", text="")
|
||||||
|
else: # graph and dopesheet editors - F-Curves and drivers only
|
||||||
if is_drivers:
|
|
||||||
row.prop(dopesheet, "show_only_errors", text="")
|
row.prop(dopesheet, "show_only_errors", text="")
|
||||||
|
|
||||||
if not genericFiltersOnly:
|
if not genericFiltersOnly:
|
||||||
|
Loading…
Reference in New Issue
Block a user