Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-10-06 21:17:40 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-10-09 14:23:38 +0300
commit9713b116447bb12dd702f1ee9f4aa1eacf0325d2 (patch)
tree8ccf62b6ccfa2758fd8aebe9ea28f47da5e9b83c /release
parentd5e1c9ab9f294df1599cdead74cff5f72daa4050 (diff)
Fix FileBrowser: do not show 'advanced filter' panel outside of lib browsing context,
it’s only used there so far. Reported by Thomas Beck (plasmasolutions) over IRC, thanks. Safe enough for 2.76.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_filebrowser.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py
index ca695208a67..f6f86c0c7a7 100644
--- a/release/scripts/startup/bl_ui/space_filebrowser.py
+++ b/release/scripts/startup/bl_ui/space_filebrowser.py
@@ -229,6 +229,11 @@ class FILEBROWSER_PT_advanced_filter(Panel):
bl_category = "Filter"
bl_label = "Advanced Filter"
+ @classmethod
+ def poll(cls, context):
+ # only useful in append/link (library) context currently...
+ return context.space_data.params.use_library_browsing
+
def draw(self, context):
layout = self.layout
space = context.space_data