[Bf-blender-cvs] [4ba72015465] master: Asset Browser: Hide Import Types menu for "Current File" asset library

Julian Eisel noreply at git.blender.org
Fri Oct 15 18:54:08 CEST 2021


Commit: 4ba72015465db2a163602fbc0001b4d8efaf69df
Author: Julian Eisel
Date:   Fri Oct 15 18:51:02 2021 +0200
Branches: master
https://developer.blender.org/rB4ba72015465db2a163602fbc0001b4d8efaf69df

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

===================================================================

M	release/scripts/startup/bl_ui/space_filebrowser.py

===================================================================

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()



More information about the Bf-blender-cvs mailing list