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
committerBastien Montagne <montagne29@wanadoo.fr>2015-10-06 21:19:36 +0300
commitf834cb03565c41172e8c8d39b6978b92a85e686c (patch)
tree4bdddb9f0ac38e3b037ae82f4695a57214061bfa
parent64aaf0cbe142d97e15215ba48128f71fa90f0194 (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.
-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