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:
authorJulian Eisel <eiseljulian@gmail.com>2019-09-06 02:22:35 +0300
committerJulian Eisel <eiseljulian@gmail.com>2019-09-06 02:31:45 +0300
commit9972d6c3062010bea514c9e382b0a99275d63a89 (patch)
treed142b202d8f7c02b3991e8e6aa9064195bc7ebce /release
parent4c4a8bf588c52e05f868a89938fa09e6f25ba1d8 (diff)
UI: Bring back features for file path button
Adds back auto-completion and auto-creation (inserting a non-existing file-path would create it) for the file path button. The second feature was left out knowingly, but seems there are reasonable use cases for it. We can't add these features to the button in the Python script, we have to call into C. So using a template to do that. Note that this is based on the old file browser code, I've copied over the TODO comment.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_filebrowser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py
index 414e0bf0b95..f03699ad879 100644
--- a/release/scripts/startup/bl_ui/space_filebrowser.py
+++ b/release/scripts/startup/bl_ui/space_filebrowser.py
@@ -391,7 +391,7 @@ class FILEBROWSER_PT_directory_path(Panel):
row.operator("file.directory_new", icon='NEWFOLDER', text="")
subrow = row.row()
- subrow.prop(params, "directory", text="")
+ subrow.template_file_select_path(params)
subrow = row.row()
subrow.scale_x = 0.5