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:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-01-16 17:37:52 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-01-16 17:37:52 +0300
commit1e0283828f4bd0330ef1c58a957c60edaa095ed3 (patch)
tree5d85f377652bedf7a7a5a0ce9a31f17763a4fd31 /source/blender/depsgraph/DEG_depsgraph.h
parent263f61493286cbcfb8ee6b86979d50794e358128 (diff)
Depsgraph: pass depsgraph to editors update context struct
This way callbacks will know which depsgraph is being changed, and where evaluated data is coming from.
Diffstat (limited to 'source/blender/depsgraph/DEG_depsgraph.h')
-rw-r--r--source/blender/depsgraph/DEG_depsgraph.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph.h b/source/blender/depsgraph/DEG_depsgraph.h
index 4f45768cbea..4d3f36b5fba 100644
--- a/source/blender/depsgraph/DEG_depsgraph.h
+++ b/source/blender/depsgraph/DEG_depsgraph.h
@@ -194,6 +194,7 @@ void DEG_graph_flush_update(struct Main *bmain, Depsgraph *depsgraph);
* editors about this.
*/
void DEG_ids_check_recalc(struct Main *bmain,
+ struct Depsgraph *depsgraph,
struct Scene *scene,
struct ViewLayer *view_layer,
bool time);
@@ -248,6 +249,7 @@ bool DEG_needs_eval(Depsgraph *graph);
typedef struct DEGEditorUpdateContext {
struct Main *bmain;
+ struct Depsgraph *depsgraph;
struct Scene *scene;
struct ViewLayer *view_layer;
} DEGEditorUpdateContext;