[Bf-blender-cvs] [64888eabfde] master: Fix: Disable leftover debug prints from earlier work on the rna path renaming/fixing code

Joshua Leung noreply at git.blender.org
Mon Jan 29 05:23:00 CET 2018


Commit: 64888eabfde0971ef928f2fed239bb275d74a24d
Author: Joshua Leung
Date:   Mon Jan 29 17:16:31 2018 +1300
Branches: master
https://developer.blender.org/rB64888eabfde0971ef928f2fed239bb275d74a24d

Fix: Disable leftover debug prints from earlier work on the rna path renaming/fixing code

===================================================================

M	source/blender/blenkernel/intern/anim_sys.c

===================================================================

diff --git a/source/blender/blenkernel/intern/anim_sys.c b/source/blender/blenkernel/intern/anim_sys.c
index 21fb29ff06d..9037122c4f8 100644
--- a/source/blender/blenkernel/intern/anim_sys.c
+++ b/source/blender/blenkernel/intern/anim_sys.c
@@ -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);



More information about the Bf-blender-cvs mailing list