diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-02-08 05:51:02 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-02-08 05:51:02 +0300 |
commit | 28238ead51684759f007b44ddb461bbd5d333b48 (patch) | |
tree | 595f7a50319a9715017e35130bc05c953ec8728b /source/blender/editors/animation | |
parent | 9827a3e9eac70f68db6dc16d03016c51b7ece3f0 (diff) |
Hid some debug prints for clicking on animation channels.
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r-- | source/blender/editors/animation/anim_channels_edit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c index a1ad79b0658..e2186f8e385 100644 --- a/source/blender/editors/animation/anim_channels_edit.c +++ b/source/blender/editors/animation/anim_channels_edit.c @@ -71,6 +71,7 @@ #include "BKE_material.h" #include "BKE_object.h" #include "BKE_context.h" +#include "BKE_global.h" #include "BKE_utildefines.h" #include "UI_interface.h" @@ -1594,7 +1595,8 @@ static int mouse_anim_channels (bAnimContext *ac, float x, int channel_index, sh ale= BLI_findlink(&anim_data, channel_index); if (ale == NULL) { /* channel not found */ - printf("Error: animation channel (index = %d) not found in mouse_anim_channels() \n", channel_index); + if (G.f & G_DEBUG) + printf("Error: animation channel (index = %d) not found in mouse_anim_channels() \n", channel_index); BLI_freelistN(&anim_data); return 0; @@ -1818,7 +1820,8 @@ static int mouse_anim_channels (bAnimContext *ac, float x, int channel_index, sh } break; default: - printf("Error: Invalid channel type in mouse_anim_channels() \n"); + if (G.f & G_DEBUG) + printf("Error: Invalid channel type in mouse_anim_channels() \n"); } /* free channels */ |