[Bf-blender-cvs] [c7f48be] asset-engine: Merge branch 'master' into asset-engine
Bastien Montagne
noreply at git.blender.org
Sat Oct 17 11:47:45 CEST 2015
Commit: c7f48be47c470230e4645e43ad547342d1369469
Author: Bastien Montagne
Date: Sat Oct 17 11:47:35 2015 +0200
Branches: asset-engine
https://developer.blender.org/rBc7f48be47c470230e4645e43ad547342d1369469
Merge branch 'master' into asset-engine
===================================================================
===================================================================
diff --cc release/scripts/startup/bl_ui/space_filebrowser.py
index 06b1c14,d7b93dc..cd03b06
--- a/release/scripts/startup/bl_ui/space_filebrowser.py
+++ b/release/scripts/startup/bl_ui/space_filebrowser.py
@@@ -42,60 -41,55 +42,60 @@@ class FILEBROWSER_HT_header(Header)
row.operator("file.refresh", text="", icon='FILE_REFRESH')
layout.separator()
- layout.operator_context = 'EXEC_DEFAULT'
- layout.operator("file.directory_new", icon='NEWFOLDER', text="")
- layout.separator()
-
- layout.operator_context = 'INVOKE_DEFAULT'
- params = st.params
-
- # can be None when save/reload with a file selector open
- if params:
- is_lib_browser = params.use_library_browsing
-
- layout.prop(params, "recursion_level", text="")
-
- layout.prop(params, "display_type", expand=True, text="")
-
- layout.prop(params, "display_size", text="")
-
- layout.prop(params, "sort_method", expand=True, text="")
-
- layout.prop(params, "show_hidden", text="", icon='FILE_HIDDEN')
- layout.prop(params, "use_filter", text="", icon='FILTER')
-
- row = layout.row(align=True)
- row.active = params.use_filter
-
- row.prop(params, "use_filter_folder", text="")
-
- if params.filter_glob:
- # if st.active_operator and hasattr(st.active_operator, "filter_glob"):
- # row.prop(params, "filter_glob", text="")
- row.label(params.filter_glob)
- else:
- row.prop(params, "use_filter_blender", text="")
- row.prop(params, "use_filter_backup", text="")
- row.prop(params, "use_filter_image", text="")
- row.prop(params, "use_filter_movie", text="")
- row.prop(params, "use_filter_script", text="")
- row.prop(params, "use_filter_font", text="")
- row.prop(params, "use_filter_sound", text="")
- row.prop(params, "use_filter_text", text="")
-
- if is_lib_browser:
- row.prop(params, "use_filter_blendid", text="")
- if params.use_filter_blendid:
- row.separator()
- row.prop(params, "filter_id_category", text="")
-
- row.separator()
- row.prop(params, "filter_search", text="", icon='VIEWZOOM')
+ if st.asset_engine:
+ draw_header = getattr(st.asset_engine, "draw_header", None)
+ if draw_header:
+ draw_header(layout, context)
+ else:
+ layout.operator_context = 'EXEC_DEFAULT'
+ layout.operator("file.directory_new", icon='NEWFOLDER', text="")
+ layout.separator()
+
+ layout.operator_context = 'INVOKE_DEFAULT'
+ params = st.params
+
+ # can be None when save/reload with a file selector open
+ if params:
+ is_lib_browser = params.use_library_browsing
+
+ layout.prop(params, "recursion_level", text="")
+
+ layout.prop(params, "display_type", expand=True, text="")
+
- layout.prop(params, "thumbnail_size", text="")
++ layout.prop(params, "display_size", text="")
+
+ layout.prop(params, "sort_method", expand=True, text="")
+
+ layout.prop(params, "show_hidden", text="", icon='FILE_HIDDEN')
+ layout.prop(params, "use_filter", text="", icon='FILTER')
+
+ row = layout.row(align=True)
+ row.active = params.use_filter
+
+ row.prop(params, "use_filter_folder", text="")
+
+ if params.filter_glob:
+ # if st.active_operator and hasattr(st.active_operator, "filter_glob"):
+ # row.prop(params, "filter_glob", text="")
+ row.label(params.filter_glob)
+ else:
+ row.prop(params, "use_filter_blender", text="")
+ row.prop(params, "use_filter_backup", text="")
+ row.prop(params, "use_filter_image", text="")
+ row.prop(params, "use_filter_movie", text="")
+ row.prop(params, "use_filter_script", text="")
+ row.prop(params, "use_filter_font", text="")
+ row.prop(params, "use_filter_sound", text="")
+ row.prop(params, "use_filter_text", text="")
+
+ if is_lib_browser:
+ row.prop(params, "use_filter_blendid", text="")
+ if params.use_filter_blendid:
+ row.separator()
+ row.prop(params, "filter_id_category", text="")
+
+ row.separator()
+ row.prop(params, "filter_search", text="", icon='VIEWZOOM')
layout.template_running_jobs()
More information about the Bf-blender-cvs
mailing list