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:
Diffstat (limited to 'source/blender/windowmanager/WM_types.h')
-rw-r--r--source/blender/windowmanager/WM_types.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h
index cc8fb307c92..4ead0b2699c 100644
--- a/source/blender/windowmanager/WM_types.h
+++ b/source/blender/windowmanager/WM_types.h
@@ -924,10 +924,13 @@ typedef struct wmDragID {
} wmDragID;
typedef struct wmDragAsset {
- /* Owning pointer. Contains the file with all the asset data (name, local ID, etc.) */
- struct AssetHandle *asset_handle;
+ /* Note: Can't store the AssetHandle here, since the FileDirEntry it wraps may be freed while
+ * dragging. So store necessary data here directly. */
+
+ char name[64]; /* MAX_NAME */
/* Always freed. */
const char *path;
+ int id_type;
int import_type; /* eFileAssetImportType */
} wmDragAsset;