[Bf-blender-cvs] [6bbf6712bb0] blender2.8: Depsgraph Filtering: Remove opnodes from entry tags too

Joshua Leung noreply at git.blender.org
Thu Aug 23 07:11:11 CEST 2018


Commit: 6bbf6712bb095add22cacd391cc4f10cfb5bfc34
Author: Joshua Leung
Date:   Thu Aug 23 11:35:30 2018 +1200
Branches: blender2.8
https://developer.blender.org/rB6bbf6712bb095add22cacd391cc4f10cfb5bfc34

Depsgraph Filtering: Remove opnodes from entry tags too

===================================================================

M	source/blender/depsgraph/intern/depsgraph_query_filter.cc

===================================================================

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 */



More information about the Bf-blender-cvs mailing list