Cleanup: Store asset-handle in drag data

Would previously pass a few properties that are available via the
asset-handle now. This asset-handle is also required for some of the
asset API, e.g. the temporary ID loading. This will probably be needed
before too long.
This commit is contained in:
2021-07-20 21:26:55 +02:00
parent 0af08cea40
commit cb0b017d8f
7 changed files with 32 additions and 22 deletions

View File

@@ -35,9 +35,11 @@ extern "C" {
/* Struct Declarations */
struct ARegion;
struct AssetHandle;
struct AssetFilterSettings;
struct AutoComplete;
struct EnumPropertyItem;
struct FileDirEntry;
struct FileSelectParams;
struct ID;
struct IDProperty;
@@ -769,9 +771,8 @@ int UI_but_return_value_get(uiBut *but);
void UI_but_drag_set_id(uiBut *but, struct ID *id);
void UI_but_drag_set_asset(uiBut *but,
const char *name,
const struct AssetHandle *asset,
const char *path,
int id_type,
int import_type, /* eFileAssetImportType */
int icon,
struct ImBuf *imb,