Animato: Hiding all debug prints behind -d flag, as they were causing too many slowdo...
[blender-staging.git] / source / blender / blenkernel / intern / constraint.c
index 8136db3e33bd10ad520edf68a941630075947405..c4ea53add4b53c7a7fe863d2320e8a2d4e769749 100644 (file)
@@ -1882,8 +1882,8 @@ static void actcon_get_tarmat (bConstraint *con, bConstraintOb *cob, bConstraint
                CLAMP(s, 0, 1);
                t = ( s * (data->end-data->start)) + data->start;
                
-               // xxx temp debugging string
-               printf("do Action Constraint %s - Ob %s Pchan %s \n", con->name, cob->ob->id.name+2, (cob->pchan)?cob->pchan->name:NULL);
+               if (G.f & G_DEBUG)
+                       printf("do Action Constraint %s - Ob %s Pchan %s \n", con->name, cob->ob->id.name+2, (cob->pchan)?cob->pchan->name:NULL);
                
                /* Get the appropriate information from the action */
                if (cob->type == CONSTRAINT_OBTYPE_BONE) {