[Bf-blender-cvs] [d2f5b73] depsgraph_refactor: Depsgraph Debugging: Turn off debug prints for driver values when evaluating drivers

Joshua Leung noreply at git.blender.org
Fri Jan 9 14:56:14 CET 2015

Commit: d2f5b73202fe2eb054931b1eac2c3436a4e8cd38
Author: Joshua Leung
Date:   Fri Jan 9 15:31:09 2015 +1300
Branches: depsgraph_refactor

Depsgraph Debugging: Turn off debug prints for driver values when evaluating drivers

Now that we know these work, it's not necessary to constantly print this info,
though I've kept the defines here for later, when we need to check whether
all the Python/GIL issues here aren't going to cause us grief.


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


diff --git a/source/blender/depsgraph/intern/depsgraph_type_defines.cpp b/source/blender/depsgraph/intern/depsgraph_type_defines.cpp
index 4dc03c2..924f163 100644
--- a/source/blender/depsgraph/intern/depsgraph_type_defines.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_type_defines.cpp
@@ -112,17 +112,17 @@ void BKE_animsys_eval_driver(EvaluationContext *UNUSED(eval_ctx),
 			/* evaluate this using values set already in other places
 			 * NOTE: for 'layering' option later on, we should check if we should remove old value before adding
 			 *       new to only be done when drivers only changed */
-			printf("\told val = %f\n", fcu->curval);
+			//printf("\told val = %f\n", fcu->curval);
 			calculate_fcurve(fcu, ctime);
 			ok = BKE_animsys_execute_fcurve(&id_ptr, NULL, fcu);
-			printf("\tnew val = %f\n", fcu->curval);
+			//printf("\tnew val = %f\n", fcu->curval);
 			/* clear recalc flag */
 			driver->flag &= ~DRIVER_FLAG_RECALC;
 			/* set error-flag if evaluation failed */
 			if (ok == 0) {
-				printf("invalid driver\n");
+				printf("invalid driver - %s[%d]\n", fcu->rna_path, fcu->array_index);
 				driver->flag |= DRIVER_FLAG_INVALID;

More information about the Bf-blender-cvs mailing list