diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-01-30 02:27:24 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-01-30 02:27:24 +0300 |
commit | e7d62464b708d95117da92b441c956d1611ffb79 (patch) | |
tree | 577f0fa0b4934e319234e638770a7a7322f4c0bc /source/blender/blenkernel/intern/key.c | |
parent | e109310ad73ef81ff8381fc91d519f1dda6059ef (diff) |
Animato: Hiding all debug prints behind -d flag, as they were causing too many slowdowns on complex rigs with Action Constraints. Many of these prints should eventually be removed, though some of them will still be useful.
Diffstat (limited to 'source/blender/blenkernel/intern/key.c')
-rw-r--r-- | source/blender/blenkernel/intern/key.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/key.c b/source/blender/blenkernel/intern/key.c index 72c24275746..86fd846ea4f 100644 --- a/source/blender/blenkernel/intern/key.c +++ b/source/blender/blenkernel/intern/key.c @@ -1346,7 +1346,7 @@ int do_ob_key(Scene *scene, Object *ob) if(ob->shapeflag & (OB_SHAPE_LOCK|OB_SHAPE_TEMPLOCK)) { KeyBlock *kb= BLI_findlink(&key->block, ob->shapenr-1); - printf("ob %s, key %s locked \n", ob->id.name+2, key->id.name+2); + if (G.f & G_DEBUG) printf("ob %s, key %s locked \n", ob->id.name+2, key->id.name+2); if(kb && (kb->flag & KEYBLOCK_MUTE)) kb= key->refkey; @@ -1393,7 +1393,7 @@ int do_ob_key(Scene *scene, Object *ob) #endif // XXX old animation system /* do shapekey local drivers */ float ctime= (float)scene->r.cfra; // XXX this needs to be checked - printf("ob %s - do shapekey (%s) drivers \n", ob->id.name+2, key->id.name+2); + if (G.f & G_DEBUG) printf("ob %s - do shapekey (%s) drivers \n", ob->id.name+2, key->id.name+2); BKE_animsys_evaluate_animdata(&key->id, key->adt, ctime, ADT_RECALC_DRIVERS); if(ob->type==OB_MESH) return do_mesh_key(scene, ob, ob->data); |