diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-10-10 12:03:58 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-10-11 11:42:45 +0300 |
commit | c9d6eb4fb42b231037b00d64602ab0c589120cbb (patch) | |
tree | 066c13998ed9d6e416fc04165b4dbf6939c1e8c9 /source/blender/depsgraph/intern/depsgraph.cc | |
parent | f9b7f3e930bd5d8dfa7d894df8cd841a71879c0e (diff) |
Depsgraph: Cleanup, promote is_evaluating query
This way it might be used for sanity checks in RNA API as well.
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph.cc b/source/blender/depsgraph/intern/depsgraph.cc index dcdea87fe1a..8f9595d2476 100644 --- a/source/blender/depsgraph/intern/depsgraph.cc +++ b/source/blender/depsgraph/intern/depsgraph.cc @@ -76,7 +76,7 @@ Depsgraph::Depsgraph(Main *bmain, Scene *scene, ViewLayer *view_layer, eEvaluati ctime(BKE_scene_frame_get(scene)), scene_cow(NULL), is_active(false), - debug_is_evaluating(false), + is_evaluating(false), is_render_pipeline_depsgraph(false) { BLI_spin_init(&lock); @@ -334,6 +334,12 @@ void DEG_graph_free(Depsgraph *graph) OBJECT_GUARDED_DELETE(deg_depsgraph, Depsgraph); } +bool DEG_is_evaluating(struct Depsgraph *depsgraph) +{ + DEG::Depsgraph *deg_graph = reinterpret_cast<DEG::Depsgraph *>(depsgraph); + return deg_graph->is_evaluating; +} + bool DEG_is_active(const struct Depsgraph *depsgraph) { if (depsgraph == NULL) { |