diff options
Diffstat (limited to 'source/blender/makesdna/DNA_simulation_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_simulation_types.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_simulation_types.h b/source/blender/makesdna/DNA_simulation_types.h index c4ff51a107e..f7a7f94da53 100644 --- a/source/blender/makesdna/DNA_simulation_types.h +++ b/source/blender/makesdna/DNA_simulation_types.h @@ -37,6 +37,9 @@ typedef struct Simulation { /** List containing SimulationState objects. */ struct ListBase states; + + /** List containing PersistentDataHandleItem objects. */ + struct ListBase persistent_data_handles; } Simulation; typedef struct SimulationState { @@ -64,6 +67,15 @@ typedef struct ParticleSimulationState { struct ListBase ptcaches; } ParticleSimulationState; +/** Stores a mapping between an integer handle and a corresponding ID data block. */ +typedef struct PersistentDataHandleItem { + struct PersistentDataHandleItem *next; + struct PersistentDataHandleItem *prev; + struct ID *id; + int handle; + char _pad[4]; +} PersistentDataHandleItem; + /* Simulation.flag */ enum { SIM_DS_EXPAND = (1 << 0), |