[Bf-blender-cvs] [3267454] master: Debug prints weren't getting triggered, since they no longer use the old flag
Joshua Leung
noreply at git.blender.org
Fri Mar 21 02:59:47 CET 2014
Commit: 3267454250b2f65b47ef5cb28ff45c822377b401
Author: Joshua Leung
Date: Fri Mar 21 12:55:10 2014 +1300
https://developer.blender.org/rB3267454250b2f65b47ef5cb28ff45c822377b401
Debug prints weren't getting triggered, since they no longer use the old flag
===================================================================
M source/blender/blenkernel/intern/fcurve.c
===================================================================
diff --git a/source/blender/blenkernel/intern/fcurve.c b/source/blender/blenkernel/intern/fcurve.c
index 5d13c48..76e95b9 100644
--- a/source/blender/blenkernel/intern/fcurve.c
+++ b/source/blender/blenkernel/intern/fcurve.c
@@ -2041,7 +2041,7 @@ static float fcurve_eval_keyframes(FCurve *fcu, BezTriple *bezts, float evaltime
/* evaltime occurs somewhere in the middle of the curve */
/* - use binary search to find appropriate keyframes */
a = binarysearch_bezt_index(bezts, evaltime, fcu->totvert, &exact);
- if (G.f & G_DEBUG) printf("eval fcurve '%s' - %f => %d/%d, %d\n", fcu->rna_path, evaltime, a, fcu->totvert, exact);
+ if (G.debug & G_DEBUG) printf("eval fcurve '%s' - %f => %d/%d, %d\n", fcu->rna_path, evaltime, a, fcu->totvert, exact);
bezt = bezts + a;
prevbezt = (a > 0) ? bezt - 1 : bezt;
@@ -2097,7 +2097,7 @@ static float fcurve_eval_keyframes(FCurve *fcu, BezTriple *bezts, float evaltime
}
}
else {
- if (G.f & G_DEBUG) printf(" ERROR: failed eval - p=%f b=%f, t=%f (%f)\n", prevbezt->vec[1][0], bezt->vec[1][0], evaltime, fabsf(bezt->vec[1][0] - evaltime));
+ if (G.debug & G_DEBUG) printf(" ERROR: failed eval - p=%f b=%f, t=%f (%f)\n", prevbezt->vec[1][0], bezt->vec[1][0], evaltime, fabsf(bezt->vec[1][0] - evaltime));
}
}
More information about the Bf-blender-cvs
mailing list