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:
authorJoshua Leung <aligorith@gmail.com>2018-08-23 02:35:30 +0300
committerJoshua Leung <aligorith@gmail.com>2018-08-23 08:07:38 +0300
commit6bbf6712bb095add22cacd391cc4f10cfb5bfc34 (patch)
tree5a07fdefbda92243067c8ece2b4b966808d62310 /source/blender/depsgraph
parent6ec933886c363c99da3df4063c6f35b94d42cbfe (diff)
Depsgraph Filtering: Remove opnodes from entry tags too
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r--source/blender/depsgraph/intern/depsgraph_query_filter.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_query_filter.cc b/source/blender/depsgraph/intern/depsgraph_query_filter.cc
index d6965206844..9bfe8815703 100644
--- a/source/blender/depsgraph/intern/depsgraph_query_filter.cc
+++ b/source/blender/depsgraph/intern/depsgraph_query_filter.cc
@@ -104,11 +104,16 @@ void deg_unlink_opnode(OperationDepsNode *op_node)
all_links.push_back(rel);
}
- /* Delete all collected entries */
+ /* Delete all collected relations */
foreach (DepsRelation *rel, all_links) {
rel->unlink();
OBJECT_GUARDED_DELETE(rel, DepsRelation);
}
+
+ /* Remove from entry tags */
+ if (BLI_gset_haskey(graph->entry_tags, op_node)) {
+ BLI_gset_remove(graph->entry_tags, op_node, NULL);
+ }
}
/* Remove and free given ID Node */