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 <julian@blender.org>2021-10-15 19:51:02 +0300
committerJulian Eisel <julian@blender.org>2021-10-15 19:53:55 +0300
commit4ba72015465db2a163602fbc0001b4d8efaf69df (patch)
tree5f0d19e4ba8caa2218704d51bd7a32a360f61925 /release/scripts/startup/bl_ui/space_filebrowser.py
parentb66b3f547c43e841a7d5da0ecb2c911628339f56 (diff)
Asset Browser: Hide Import Types menu for "Current File" asset library
This menu doesn't have an effect on the importing while in the "Current File" asset library. This can be quite confusing. However, just hiding the menu may be a temporary solution. Decision actually to instead show a different menu, that allows choosing between duplicating and reusing data on drop. This is being reviewed here https://developer.blender.org/D12879. Meanwhile (or in case we end up rejecting that), this change should avoid some confusion. Differential Revision: https://developer.blender.org/D12752
Diffstat (limited to 'release/scripts/startup/bl_ui/space_filebrowser.py')
-rw-r--r--release/scripts/startup/bl_ui/space_filebrowser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py
index a087361780c..f916a9988fd 100644
--- a/release/scripts/startup/bl_ui/space_filebrowser.py
+++ b/release/scripts/startup/bl_ui/space_filebrowser.py
@@ -38,7 +38,8 @@ class FILEBROWSER_HT_header(Header):
layout.separator_spacer()
- layout.prop(params, "import_type", text="")
+ if params.asset_library_ref != 'LOCAL':
+ layout.prop(params, "import_type", text="")
layout.separator_spacer()