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>2018-04-13 13:11:56 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-04-13 13:14:50 +0300
commit332846b188d6c7463758fb8d8659785beccde63a (patch)
tree8cc5e65053574a2b5a9e6d320f252c5d7ef40207 /release
parenta494df8e383d7dd0a4c5e192ed3e0be71984cb84 (diff)
Remove editor type selector from File Browser when in 'Operator' mode.
Having that one when opening a file or loading some lib makes absolutely no sense, and switching that 'temp' editor to some other type can trigger all kind of funny bugs... Note that using the shortcuts keys (Shift-F5 etc.) is still possible, removing those seems a bit more involved. :/
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_filebrowser.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py
index bd72dfa9370..2d45d11b423 100644
--- a/release/scripts/startup/bl_ui/space_filebrowser.py
+++ b/release/scripts/startup/bl_ui/space_filebrowser.py
@@ -28,8 +28,10 @@ class FILEBROWSER_HT_header(Header):
layout = self.layout
st = context.space_data
+ params = st.params
- layout.template_header()
+ if st.active_operator is None:
+ layout.template_header()
row = layout.row()
row.separator()
@@ -46,7 +48,6 @@ class FILEBROWSER_HT_header(Header):
layout.separator()
layout.operator_context = 'INVOKE_DEFAULT'
- params = st.params
# can be None when save/reload with a file selector open
if params: