From 28238ead51684759f007b44ddb461bbd5d333b48 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Mon, 8 Feb 2010 02:51:02 +0000 Subject: Hid some debug prints for clicking on animation channels. --- source/blender/editors/animation/anim_channels_edit.c | 7 +++++-- source/blender/editors/space_nla/nla_channels.c | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'source') 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 */ diff --git a/source/blender/editors/space_nla/nla_channels.c b/source/blender/editors/space_nla/nla_channels.c index 1666a169f12..3d20cfe54ba 100644 --- a/source/blender/editors/space_nla/nla_channels.c +++ b/source/blender/editors/space_nla/nla_channels.c @@ -59,6 +59,7 @@ #include "BKE_animsys.h" #include "BKE_nla.h" #include "BKE_context.h" +#include "BKE_global.h" #include "BKE_screen.h" #include "BKE_utildefines.h" @@ -109,7 +110,8 @@ static int mouse_nla_channels (bAnimContext *ac, float x, int channel_index, sho 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; @@ -298,7 +300,8 @@ static int mouse_nla_channels (bAnimContext *ac, float x, int channel_index, sho break; default: - printf("Error: Invalid channel type in mouse_nla_channels() \n"); + if (G.f & G_DEBUG) + printf("Error: Invalid channel type in mouse_nla_channels() \n"); } /* free channels */ -- cgit v1.2.3