[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55458] trunk/blender/source/blender/ blenkernel/intern/fcurve.c: Driver error warnings are now only printed to the console when Blender is run
Joshua Leung
aligorith at gmail.com
Thu Mar 21 07:11:17 CET 2013
Revision: 55458
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55458
Author: aligorith
Date: 2013-03-21 06:11:16 +0000 (Thu, 21 Mar 2013)
Log Message:
-----------
Driver error warnings are now only printed to the console when Blender is run
using the -d flag
This prevents a stream of error messages flooding the console when working with
particular rigs which may have a few broken controls. In general, riggers now
have a better alternative by using the filtering tools in the Graph Editor.
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/fcurve.c
Modified: trunk/blender/source/blender/blenkernel/intern/fcurve.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/fcurve.c 2013-03-21 04:22:29 UTC (rev 55457)
+++ trunk/blender/source/blender/blenkernel/intern/fcurve.c 2013-03-21 06:11:16 UTC (rev 55458)
@@ -1024,10 +1024,11 @@
id = dtar_id_ensure_proxy_from(dtar->id);
/* error check for missing pointer... */
- /* TODO: tag the specific target too as having issues */
if (id == NULL) {
- printf("Error: driver has an invalid target to use\n");
- if (G.debug & G_DEBUG) printf("\tpath = %s\n", dtar->rna_path);
+ if (G.debug & G_DEBUG) {
+ printf("Error: driver has an invalid target to use (path = %s)\n", dtar->rna_path);
+ }
+
driver->flag |= DRIVER_FLAG_INVALID;
dtar->flag |= DTAR_FLAG_INVALID;
return 0.0f;
@@ -1089,8 +1090,9 @@
}
else {
/* path couldn't be resolved */
- if (G.debug & G_DEBUG)
+ if (G.debug & G_DEBUG) {
printf("Driver Evaluation Error: cannot resolve target for %s -> %s\n", id->name, dtar->rna_path);
+ }
driver->flag |= DRIVER_FLAG_INVALID;
dtar->flag |= DTAR_FLAG_INVALID;
@@ -1152,19 +1154,25 @@
/* check what the error was */
if ((pchan == NULL) && (pchan2 == NULL)) {
- printf("Driver Evaluation Error: Rotational difference failed - first 2 targets invalid\n");
+ if (G.debug & G_DEBUG) {
+ printf("Driver Evaluation Error: Rotational difference failed - first 2 targets invalid\n");
+ }
dtar1->flag |= DTAR_FLAG_INVALID;
dtar2->flag |= DTAR_FLAG_INVALID;
}
else if (pchan == NULL) {
- printf("Driver Evaluation Error: Rotational difference failed - first target not valid PoseChannel\n");
+ if (G.debug & G_DEBUG) {
+ printf("Driver Evaluation Error: Rotational difference failed - first target not valid PoseChannel\n");
+ }
dtar1->flag |= DTAR_FLAG_INVALID;
dtar2->flag &= ~DTAR_FLAG_INVALID;
}
else if (pchan2 == NULL) {
- printf("Driver Evaluation Error: Rotational difference failed - second target not valid PoseChannel\n");
+ if (G.debug & G_DEBUG) {
+ printf("Driver Evaluation Error: Rotational difference failed - second target not valid PoseChannel\n");
+ }
dtar1->flag &= ~DTAR_FLAG_INVALID;
dtar2->flag |= DTAR_FLAG_INVALID;
More information about the Bf-blender-cvs
mailing list