Revision: 26696
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26696
Author:   aligorith
Date:     2010-02-08 03:51:02 +0100 (Mon, 08 Feb 2010)

Log Message:
-----------
Hid some debug prints for clicking on animation channels.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/animation/anim_channels_edit.c
    trunk/blender/source/blender/editors/space_nla/nla_channels.c

Modified: trunk/blender/source/blender/editors/animation/anim_channels_edit.c
===================================================================
--- trunk/blender/source/blender/editors/animation/anim_channels_edit.c 
2010-02-08 02:19:17 UTC (rev 26695)
+++ trunk/blender/source/blender/editors/animation/anim_channels_edit.c 
2010-02-08 02:51:02 UTC (rev 26696)
@@ -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 @@
        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 @@
                }
                        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 */

Modified: trunk/blender/source/blender/editors/space_nla/nla_channels.c
===================================================================
--- trunk/blender/source/blender/editors/space_nla/nla_channels.c       
2010-02-08 02:19:17 UTC (rev 26695)
+++ trunk/blender/source/blender/editors/space_nla/nla_channels.c       
2010-02-08 02:51:02 UTC (rev 26696)
@@ -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 @@
        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 @@
                        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 */


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to