[Bf-blender-cvs] [3a30987] depsgraph_refactor: Depsgraph: Fix missing updates after recent visibility changes

Sergey Sharybin noreply at git.blender.org
Wed Feb 25 14:21:29 CET 2015


Commit: 3a30987e99a803f911eb52b1a22a30c9657906d2
Author: Sergey Sharybin
Date:   Wed Feb 25 18:19:51 2015 +0500
Branches: depsgraph_refactor
https://developer.blender.org/rB3a30987e99a803f911eb52b1a22a30c9657906d2

Depsgraph: Fix missing updates after recent visibility changes

After some additional thoughts it's now not totally clear for me if we really
want flush to happen on invisible objects or not. Will think about it in more
details..

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

M	source/blender/depsgraph/intern/depsgraph_eval.cpp

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

diff --git a/source/blender/depsgraph/intern/depsgraph_eval.cpp b/source/blender/depsgraph/intern/depsgraph_eval.cpp
index c1332a4..fd138d8 100644
--- a/source/blender/depsgraph/intern/depsgraph_eval.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_eval.cpp
@@ -175,7 +175,10 @@ static void calculate_pending_parents(Depsgraph *graph, int layers)
 				    (rel->flag & DEPSREL_FLAG_CYCLIC) == 0)
 				{
 					OperationDepsNode *from = (OperationDepsNode *)rel->from;
-					if (from->flag & DEPSOP_FLAG_NEEDS_UPDATE) {
+					IDDepsNode *id_from_node = from->owner->owner;
+					if ((id_from_node->layers & layers) != 0 &&
+					    (from->flag & DEPSOP_FLAG_NEEDS_UPDATE) != 0)
+					{
 						++node->num_links_pending;
 					}
 				}




More information about the Bf-blender-cvs mailing list