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
This commit is contained in:
Julian Eisel 2021-10-15 18:51:02 +02:00
parent b66b3f547c
commit 4ba7201546
1 changed files with 2 additions and 1 deletions

View File

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