Assets: Preference for default import method for an asset library

The default import method for an asset library can now be determined in
the Preferences. The Asset Browser has a new "Follow Preferences" option
for the importing. The essentials asset library still only uses "Append
(Reuse Data)".

This is part of #104686, which aims at improving the import method
selection, especially for the introduction of the new essentials library
(which doesn't support certain import methods). Further changes are
coming to improve the UI, see #104686.

Pull Request: #104688
This commit is contained in:
2023-02-15 12:47:47 +01:00
parent 4387dbf03e
commit ae84a2956e
25 changed files with 289 additions and 63 deletions

View File

@@ -1797,7 +1797,7 @@ void UI_but_drag_attach_image(uiBut *but, struct ImBuf *imb, float scale);
void UI_but_drag_set_asset(uiBut *but,
const struct AssetHandle *asset,
const char *path,
int import_type, /* eFileAssetImportType */
int import_type, /* eAssetImportType */
int icon,
struct ImBuf *imb,
float scale);