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:
authorJacques Lucke <jacques@blender.org>2020-07-23 13:09:28 +0300
committerJacques Lucke <jacques@blender.org>2020-07-23 13:09:36 +0300
commit634585aa6875f9e6e8a2e43e283f9d530764a094 (patch)
tree837a72316887305f8e0b14c69bb1469dea4b1c7c /source/blender/makesdna/DNA_simulation_types.h
parent65968911217380a7a594f8684150b5fa01866d6a (diff)
Simulation: add depsgraph relations for ids referenced by node tree
I'll really have to refactor `ntreeUpdateTree` soon to avoid scanning all node trees multiple times.
Diffstat (limited to 'source/blender/makesdna/DNA_simulation_types.h')
-rw-r--r--source/blender/makesdna/DNA_simulation_types.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_simulation_types.h b/source/blender/makesdna/DNA_simulation_types.h
index 5bb0e50e089..c0be66dcb30 100644
--- a/source/blender/makesdna/DNA_simulation_types.h
+++ b/source/blender/makesdna/DNA_simulation_types.h
@@ -72,7 +72,7 @@ typedef struct PersistentDataHandleItem {
struct PersistentDataHandleItem *prev;
struct ID *id;
int handle;
- char _pad[4];
+ int flag;
} PersistentDataHandleItem;
/* Simulation.flag */
@@ -80,6 +80,12 @@ enum {
SIM_DS_EXPAND = (1 << 0),
};
+/* PersistentDataHandleItem.flag */
+enum {
+ SIM_HANDLE_DEPENDS_ON_TRANSFORM = (1 << 0),
+ SIM_HANDLE_DEPENDS_ON_GEOMETRY = (1 << 1),
+};
+
#define SIM_TYPE_NAME_PARTICLE_SIMULATION "Particle Simulation"
#define SIM_TYPE_NAME_PARTICLE_MESH_EMITTER "Particle Mesh Emitter"