[Bf-blender-cvs] [73a474dd8b4] blender2.8: Depsgraph: Cleanup, indentation level

Sergey Sharybin noreply at git.blender.org
Mon Sep 3 13:44:30 CEST 2018


Commit: 73a474dd8b4154234929d418690e8f8cf659c7e9
Author: Sergey Sharybin
Date:   Mon Sep 3 12:11:11 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB73a474dd8b4154234929d418690e8f8cf659c7e9

Depsgraph: Cleanup, indentation level

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

M	source/blender/depsgraph/intern/builder/deg_builder_nodes.cc

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

diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
index 95f07603592..7546f7f7e4a 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
@@ -335,15 +335,14 @@ void DepsgraphNodeBuilder::begin_build()
 	 */
 	cow_id_hash_ = BLI_ghash_ptr_new("Depsgraph id hash");
 	foreach (IDDepsNode *id_node, graph_->id_nodes) {
-		if (deg_copy_on_write_is_expanded(id_node->id_cow)) {
-			if (id_node->id_orig == id_node->id_cow) {
-				continue;
-			}
-			BLI_ghash_insert(cow_id_hash_,
-			                 id_node->id_orig,
-			                 id_node->id_cow);
-			id_node->id_cow = NULL;
+		if (!deg_copy_on_write_is_expanded(id_node->id_cow)) {
+			continue;
+		}
+		if (id_node->id_orig == id_node->id_cow) {
+			continue;
 		}
+		BLI_ghash_insert(cow_id_hash_, id_node->id_orig, id_node->id_cow);
+		id_node->id_cow = NULL;
 	}
 
 	GSET_FOREACH_BEGIN(OperationDepsNode *, op_node, graph_->entry_tags)



More information about the Bf-blender-cvs mailing list