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-04-29 22:25:34 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-04-29 22:30:33 +0300
commit054aa61f3c9af0997cbb0ecf89f73227723a24cd (patch)
tree12633d0b7c8727a645050fc852efa028456c893b /release/scripts
parent3de45ee7fe451ab4267b824a569a2173660d2575 (diff)
File browser - change thumbnails size with a slider
We can now scale from 32px up to 256px (default has been upgraded to 128px). Thumbnails are now generated as 'large', i.e. 256px. Previews are scaled up if necessary, unlike icons (for folders or files without preview images). Note that .blend thumbnails themselves remain in 128px for now (they are embeded in .blend files, not quite sure we want to make them four times bigger...). Patch by DMS (Yaron Dames), with final edits by myself. Reviewers: mont29 Subscribers: Severin, mont29 Differential Revision: https://developer.blender.org/D1260
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_ui/space_filebrowser.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py
index 8acf8cfaef3..5da660fcb5f 100644
--- a/release/scripts/startup/bl_ui/space_filebrowser.py
+++ b/release/scripts/startup/bl_ui/space_filebrowser.py
@@ -53,6 +53,10 @@ class FILEBROWSER_HT_header(Header):
# can be None when save/reload with a file selector open
if params:
layout.prop(params, "display_type", expand=True, text="")
+
+ if params.display_type == 'FILE_IMGDISPLAY':
+ layout.prop(params, "thumbnails_size")
+
layout.prop(params, "sort_method", expand=True, text="")
layout.prop(params, "show_hidden", text="", icon='FILE_HIDDEN')