Fix: Disable leftover debug prints from earlier work on the rna path renaming/fixing...
authorJoshua Leung <aligorith@gmail.com>
Mon, 29 Jan 2018 04:16:31 +0000 (17:16 +1300)
committerJoshua Leung <aligorith@gmail.com>
Mon, 29 Jan 2018 04:22:03 +0000 (17:22 +1300)
source/blender/blenkernel/intern/anim_sys.c

index 21fb29ff06d5518c842153a22d4b174ecacd7ed4..9037122c4f8d6c80ec373f3ef958599cc0167972 100644 (file)
@@ -818,7 +818,7 @@ char *BKE_animsys_fix_rna_path_rename(ID *owner_id, char *old_path, const char *
        
        /* if no action, no need to proceed */
        if (ELEM(NULL, owner_id, old_path)) {
-               printf("early abort\n");
+               if (G.debug & G_DEBUG) printf("%s: early abort\n", __func__);
                return old_path;
        }
        
@@ -841,9 +841,9 @@ char *BKE_animsys_fix_rna_path_rename(ID *owner_id, char *old_path, const char *
        }
        
        /* fix given path */
-       printf("%s | %s  | oldpath = %p ", oldN, newN, old_path);
+       if (G.debug & G_DEBUG) printf("%s | %s  | oldpath = %p ", oldN, newN, old_path);
        result = rna_path_rename_fix(owner_id, prefix, oldN, newN, old_path, verify_paths);
-       printf("result = %p\n", result);
+       if (G.debug & G_DEBUG) printf("path rename result = %p\n", result);
        
        /* free the temp names */
        MEM_freeN(oldN);