[Bf-blender-cvs] [efc6f94] master: OpenSubdiv: Tweaks to detecting whether geometry data is needed on GPU with new DEG

Sergey Sharybin noreply at git.blender.org
Thu Aug 27 11:51:08 CEST 2015


Commit: efc6f9438f3dc624b1d6156036bd57ddce952747
Author: Sergey Sharybin
Date:   Thu Aug 27 11:47:56 2015 +0200
Branches: master
https://developer.blender.org/rBefc6f9438f3dc624b1d6156036bd57ddce952747

OpenSubdiv: Tweaks to detecting whether geometry data is needed on GPU with new DEG

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

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

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

diff --git a/source/blender/depsgraph/intern/depsgraph.cc b/source/blender/depsgraph/intern/depsgraph.cc
index 12b3a36..2465654 100644
--- a/source/blender/depsgraph/intern/depsgraph.cc
+++ b/source/blender/depsgraph/intern/depsgraph.cc
@@ -357,9 +357,12 @@ DepsRelation *Depsgraph::add_new_relation(OperationDepsNode *from,
 #ifdef WITH_OPENSUBDIV
 	if (type == DEPSREL_TYPE_GEOMETRY_EVAL) {
 		IDDepsNode *id_to = to->owner->owner;
-		if ((id_to->eval_flags & DAG_EVAL_NEED_CPU) == 0) {
-			id_to->tag_update(this);
-			id_to->eval_flags |= DAG_EVAL_NEED_CPU;
+		IDDepsNode *id_from = to->owner->owner;
+		if (id_to != id_from) {
+			if ((id_to->eval_flags & DAG_EVAL_NEED_CPU) == 0) {
+				id_to->tag_update(this);
+				id_to->eval_flags |= DAG_EVAL_NEED_CPU;
+			}
 		}
 	}
 #endif




More information about the Bf-blender-cvs mailing list