From 38aacb92f32ef5ea80a5e9b4b7b2757a6cc4b8bf Mon Sep 17 00:00:00 2001 From: Matt Ebb Date: Fri, 22 Jan 2010 06:48:29 +0000 Subject: Cleaned up some printfs in editors/ - converted some to reports, hid others behind G_DEBUG. --- source/blender/editors/interface/view2d.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/interface/view2d.c') diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c index cba314b0bf3..c5e81e237c9 100644 --- a/source/blender/editors/interface/view2d.c +++ b/source/blender/editors/interface/view2d.c @@ -838,7 +838,8 @@ void UI_view2d_totRect_set_resize (View2D *v2d, int width, int height, int resiz height -= V2D_SCROLL_HEIGHT; if (ELEM3(0, v2d, width, height)) { - printf("Error: View2D totRect set exiting: v2d=%p width=%d height=%d \n", v2d, width, height); // XXX temp debug info + if (G.f & G_DEBUG) + printf("Error: View2D totRect set exiting: v2d=%p width=%d height=%d \n", v2d, width, height); // XXX temp debug info return; } -- cgit v1.2.3