diff options
author | Sergey Sharybin <sergey@blender.org> | 2020-08-05 12:54:18 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2020-08-11 13:17:13 +0300 |
commit | 6f99dfc0c6032fa5644031f6355ff59e8e10261d (patch) | |
tree | 2b874bc3b38617c348a1c1ee51a63c17c56530da /source/blender/makesdna/DNA_modifier_types.h | |
parent | ca2c4907fb1af301af59d8c922759e947e2675c7 (diff) |
Modifier: Maintain per-modifier session UUID
Allows to keep track of modifiers, which is required, for example,
for runtime data preservation in depsgraph.
Diffstat (limited to 'source/blender/makesdna/DNA_modifier_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_modifier_types.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h index b01b3f42e6a..fc50261eb03 100644 --- a/source/blender/makesdna/DNA_modifier_types.h +++ b/source/blender/makesdna/DNA_modifier_types.h @@ -22,6 +22,7 @@ #include "DNA_defs.h" #include "DNA_listBase.h" +#include "DNA_session_uuid_types.h" #ifdef __cplusplus extern "C" { @@ -124,6 +125,11 @@ typedef struct ModifierData { /* Pointer to a ModifierData in the original domain. */ struct ModifierData *orig_modifier_data; + + /* Runtime field which contains unique identifier of the modifier. */ + SessionUUID session_uuid; + + /* Runtime field which contains runtime data which is specific to a modifier type. */ void *runtime; } ModifierData; |