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-07-20 22:26:55 +0300
committerJulian Eisel <julian@blender.org>2021-07-20 22:30:04 +0300
commitcb0b017d8f5178b58a59c66e9588199f2864608b (patch)
tree964a1532fc149534b3a4b6d34323f70bb51cc60e /source/blender/windowmanager/WM_types.h
parent0af08cea40964b69a48a2be773aeb22304d2b46f (diff)
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.
Diffstat (limited to 'source/blender/windowmanager/WM_types.h')
-rw-r--r--source/blender/windowmanager/WM_types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h
index 2b48a5f6648..cc8fb307c92 100644
--- a/source/blender/windowmanager/WM_types.h
+++ b/source/blender/windowmanager/WM_types.h
@@ -924,10 +924,10 @@ typedef struct wmDragID {
} wmDragID;
typedef struct wmDragAsset {
- char name[64]; /* MAX_NAME */
+ /* Owning pointer. Contains the file with all the asset data (name, local ID, etc.) */
+ struct AssetHandle *asset_handle;
/* Always freed. */
const char *path;
- int id_type;
int import_type; /* eFileAssetImportType */
} wmDragAsset;