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>2017-11-24 17:07:09 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-11-24 17:46:25 +0300
commita365f1dd65763d37855b0b7ecb65a74f0b1a7be3 (patch)
treea39b939e1b94b99cc4c4fdbf055046820a9d8ce6 /source/blender/depsgraph/intern/depsgraph_build.cc
parentdde05cbcc27e4b6f067248c0b0519d1c130e5047 (diff)
Depsgraph: Re-schedule pending tags after relations update
It is possible to have situation when we need to both update relations and do some updates on random IDs. This was only done before for objects using their recalc field. This means, every update tag which did not fit into there would have been lost after updating relations. Now we do some smarter re-scheduling of operations after relations are updated.
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_build.cc')
-rw-r--r--source/blender/depsgraph/intern/depsgraph_build.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_build.cc b/source/blender/depsgraph/intern/depsgraph_build.cc
index e4e0247f251..68cf4d77360 100644
--- a/source/blender/depsgraph/intern/depsgraph_build.cc
+++ b/source/blender/depsgraph/intern/depsgraph_build.cc
@@ -221,6 +221,7 @@ void DEG_graph_build_from_view_layer(Depsgraph *graph,
node_builder.build_view_layer(scene,
view_layer,
DEG::DEG_ID_LINKED_DIRECTLY);
+ node_builder.end_build();
/* 2) Hook up relationships between operations - to determine evaluation
* order.