Commit: a2b8d96ac38d4f654f08816bfe5c15fc4da1a247
Author: Joshua Leung
Date: Mon Dec 29 14:49:46 2014 +1300
Branches: depsgraph_refactor
https://developer.blender.org/rBa2b8d96ac38d4f654f08816bfe5c15fc4da1a247
Added some asserts, suggested by Sergey
===================================================================
M source/blender/depsgraph/intern/depsgraph_build.cpp
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph_build.cpp
b/source/blender/depsgraph/intern/depsgraph_build.cpp
index 14b5a33..d4da393 100644
--- a/source/blender/depsgraph/intern/depsgraph_build.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build.cpp
@@ -303,6 +303,9 @@ void
DepsgraphNodeBuilder::verify_entry_exit_operations(ComponentDepsNode *node)
/* multiple unlinked ops, add a barrier node as a single exit
point */
// XXX: problematic for drivers
}
+
+ BLI_assert(node->operations.size() == 0 || node->entry_operation !=
NULL);
+ BLI_assert(node->operations.size() == 0 || node->exit_operation !=
NULL);
}
void DepsgraphNodeBuilder::verify_entry_exit_operations()
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs