diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-27 06:27:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-27 06:27:53 +0300 |
commit | d559eaffd46e3a0e4e289e7307fabd79a4a29a11 (patch) | |
tree | aac9d490f688b03fb61ced4341a3e1a21debe4c9 /release/scripts/startup/bl_ui | |
parent | 08f9cd3218de3c256dbdf7d100e8fa95d1312486 (diff) |
Cleanup: remove star import
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/space_dopesheet.py | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_ui/space_dopesheet.py b/release/scripts/startup/bl_ui/space_dopesheet.py index cf2afd3ab61..632c0adb85d 100644 --- a/release/scripts/startup/bl_ui/space_dopesheet.py +++ b/release/scripts/startup/bl_ui/space_dopesheet.py @@ -19,15 +19,17 @@ # <pep8 compliant> import bpy -from bpy.types import Header, Menu, Panel -from .space_time import * - +from bpy.types import ( + Header, + Menu, + Panel, +) ####################################### # DopeSheet Filtering - Header Buttons # used for DopeSheet, NLA, and Graph Editors -def dopesheet_filter(layout, context, genericFiltersOnly=False): +def dopesheet_filter(layout, context, generic_filters_only=False): dopesheet = context.space_data.dopesheet is_nla = context.area.type == 'NLA_EDITOR' @@ -40,7 +42,7 @@ def dopesheet_filter(layout, context, genericFiltersOnly=False): else: # graph and dopesheet editors - F-Curves and drivers only row.prop(dopesheet, "show_only_errors", text="") - if not genericFiltersOnly: + if not generic_filters_only: if bpy.data.collections: row = layout.row(align=True) row.prop(dopesheet, "filter_collection", text="") @@ -205,6 +207,10 @@ class DOPESHEET_HT_header(Header): row.template_header() if st.mode == 'TIMELINE': + from .space_time import ( + TIME_MT_editor_menus, + TIME_HT_editor_buttons, + ) TIME_MT_editor_menus.draw_collapsible(context, layout) TIME_HT_editor_buttons.draw_header(context, layout) else: @@ -247,9 +253,9 @@ class DOPESHEET_HT_editor_buttons(Header): if st.mode == 'DOPESHEET': dopesheet_filter(layout, context) elif st.mode == 'ACTION': - # 'genericFiltersOnly' limits the options to only the relevant 'generic' subset of + # 'generic_filters_only' limits the options to only the relevant 'generic' subset of # filters which will work here and are useful (especially for character animation) - dopesheet_filter(layout, context, genericFiltersOnly=True) + dopesheet_filter(layout, context, generic_filters_only=True) elif st.mode == 'GPENCIL': row = layout.row(align=True) row.prop(st.dopesheet, "show_gpencil_3d_only", text="Active Only") |