diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-31 13:57:21 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-31 19:07:55 +0300 |
commit | 7a4b0ff358121397519873123fa77a7cc00974bd (patch) | |
tree | 03feb3df33269c6aefa5f37798360f7566ff5ce6 /source/blender/depsgraph/DEG_depsgraph.h | |
parent | d4daf9c00d36a2dc7073a0a0716fec1936b212da (diff) |
Depsgraph: Begin concept of active dependency graph
When active dependency graph is evaluated, it will apply animation,
drivers and scalar evaluation data (such as object matrix) to an
original datablock. This way operators and tools can easily read
data from original datablock.
This will simplify porting them to copy-on-write, and solve issues
when some operator will allocate new datablock based on original one,
and will want to read data from it.
Diffstat (limited to 'source/blender/depsgraph/DEG_depsgraph.h')
-rw-r--r-- | source/blender/depsgraph/DEG_depsgraph.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph.h b/source/blender/depsgraph/DEG_depsgraph.h index fbd267924a9..2071342dfa0 100644 --- a/source/blender/depsgraph/DEG_depsgraph.h +++ b/source/blender/depsgraph/DEG_depsgraph.h @@ -229,6 +229,12 @@ typedef void (*DEG_EditorUpdateSceneCb)( void DEG_editors_set_update_cb(DEG_EditorUpdateIDCb id_func, DEG_EditorUpdateSceneCb scene_func); +/* Evaluation ----------------------------------- */ + +bool DEG_is_active(const struct Depsgraph *depsgraph); +void DEG_make_active(struct Depsgraph *depsgraph); +void DEG_make_inactive(struct Depsgraph *depsgraph); + /* Evaluation Debug ------------------------------ */ void DEG_debug_print_begin(struct Depsgraph *depsgraph); |