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/makesdna/DNA_ID.h')
-rw-r--r--source/blender/makesdna/DNA_ID.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h
index 89af705d5ed..3ac93a96661 100644
--- a/source/blender/makesdna/DNA_ID.h
+++ b/source/blender/makesdna/DNA_ID.h
@@ -31,6 +31,8 @@
extern "C" {
#endif
+#include "DNA_defs.h"
+
struct FileData;
struct GHash;
struct GPUTexture;
@@ -243,7 +245,13 @@ typedef struct ID {
int us;
int icon_id;
int recalc;
- char _pad[4];
+
+ /**
+ * A session-wide unique identifier for a given ID, that remain the same across potential
+ * re-allocations (e.g. due to undo/redo steps).
+ */
+ unsigned int session_uuid;
+
IDProperty *properties;
/** Reference linked ID which this one overrides. */