diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-10-20 13:28:25 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-10-20 13:28:25 +0300 |
commit | 0fdc0f8bbddf2913e784f4abc75972c76cabcc3a (patch) | |
tree | dc5fc387cc7dc60fe72fe0e7bd851f13a470a665 /source/blender/makesdna | |
parent | 86d75d5d9839009d14f816f1f50a224ef37612a7 (diff) |
Depsgraph: Introduce hash of dependency graphs in the scene level
The idea is following: we do need to have multiple dependency graphs to denote
different scene layers (depsgraph should only contain objects from a specific
scene layer), and we also want to support same scene layer to be evaluated to
a different state in different windows. In order to achieve that we do need to
have a list or hash (for faster lookup presumably) somewhere. To keep things
easier for now, it will be a scene which owns that hash. This seems to make
sense anyway, since dependency graph only points to data which is owned by
scene.
This commit only introduces some basic API and hash itself stored in DNA, there
is no changes in behavior. See this as a first step towards getting rid of
scene-global dependency graph.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index ec885cb198c..68599a10a3e 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -1655,7 +1655,9 @@ typedef struct Scene { /* none of the dependency graph vars is mean to be saved */ struct Depsgraph *depsgraph_legacy; - float pad3; + struct GHash *depsgraph_hash; + void *pad3; + int pad7; /* User-Defined KeyingSets */ int active_keyingset; /* index of the active KeyingSet. first KeyingSet has index 1, 'none' active is 0, 'add new' is -1 */ |