[Bf-blender-cvs] [972ac0e] depsgraph_refactor: Depsgraph: Improved add_relation() errors to report what the non-failing link was
Joshua Leung
noreply at git.blender.org
Fri Jan 30 07:32:32 CET 2015
Commit: 972ac0e1e0c64fb530da370e45876f20c4ede2b8
Author: Joshua Leung
Date: Fri Jan 30 19:28:26 2015 +1300
Branches: depsgraph_refactor
https://developer.blender.org/rB972ac0e1e0c64fb530da370e45876f20c4ede2b8
Depsgraph: Improved add_relation() errors to report what the non-failing link was
===================================================================
M source/blender/depsgraph/intern/depsgraph_build.h
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph_build.h b/source/blender/depsgraph/intern/depsgraph_build.h
index 824a782..7e9a033 100644
--- a/source/blender/depsgraph/intern/depsgraph_build.h
+++ b/source/blender/depsgraph/intern/depsgraph_build.h
@@ -325,11 +325,19 @@ void DepsgraphRelationBuilder::add_relation(const KeyFrom &key_from,
fprintf(stderr, "add_relation(%d, %s) - Could not find op_from (%s)\n",
type, description.c_str(), key_from.identifier().c_str());
}
+ else {
+ fprintf(stderr, "add_relation(%d, %s) - Failed, but op_from (%s) was ok\n",
+ type, description.c_str(), key_from.identifier().c_str());
+ }
if (!op_to) {
/* XXX TODO handle as error or report if needed */
fprintf(stderr, "add_relation(%d, %s) - Could not find op_to (%s)\n",
type, description.c_str(), key_to.identifier().c_str());
}
+ else {
+ fprintf(stderr, "add_relation(%d, %s) - Failed, but op_to (%s) was ok\n",
+ type, description.c_str(), key_to.identifier().c_str());
+ }
}
}
More information about the Bf-blender-cvs
mailing list