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>2019-05-28 16:52:26 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-05-28 18:06:41 +0300
commitb683e965ab9720e82e734069990ff6c469980318 (patch)
tree2dbc9f441d184984f77a34509cbbeb1d64efa235 /source/blender/blenkernel/intern/context.c
parent0cf0cc9873c114f3ccc19901931616a0e91f27cb (diff)
Depsgraph: Only invoke callbacks when there are changes
Only affects when an evaluated dependency graph is requested via context. Makes it cheap to call when there are no changes made to the graph
Diffstat (limited to 'source/blender/blenkernel/intern/context.c')
-rw-r--r--source/blender/blenkernel/intern/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/context.c b/source/blender/blenkernel/intern/context.c
index 28b0ae23ffe..4ae87713aa5 100644
--- a/source/blender/blenkernel/intern/context.c
+++ b/source/blender/blenkernel/intern/context.c
@@ -1365,7 +1365,7 @@ Depsgraph *CTX_data_evaluated_depsgraph(const bContext *C)
{
Depsgraph *depsgraph = CTX_data_depsgraph(C);
Main *bmain = CTX_data_main(C);
- BKE_scene_graph_update_tagged(depsgraph, bmain);
+ BKE_scene_graph_evaluated_ensure(depsgraph, bmain);
return depsgraph;
}