[Bf-blender-cvs] [f032c88] depsgraph_refactor: Depsgraph WIP: Disable superfluous debug prints

Joshua Leung noreply at git.blender.org
Thu Jan 29 14:13:04 CET 2015


Commit: f032c88c586beee2bec0a4127d8f43d4c01d1391
Author: Joshua Leung
Date:   Fri Jan 30 01:43:23 2015 +1300
Branches: depsgraph_refactor
https://developer.blender.org/rBf032c88c586beee2bec0a4127d8f43d4c01d1391

Depsgraph WIP: Disable superfluous debug prints

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

M	source/blender/depsgraph/intern/depsgraph_debug_ogdf.cpp

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

diff --git a/source/blender/depsgraph/intern/depsgraph_debug_ogdf.cpp b/source/blender/depsgraph/intern/depsgraph_debug_ogdf.cpp
index 74565ed..5ccecef 100644
--- a/source/blender/depsgraph/intern/depsgraph_debug_ogdf.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_debug_ogdf.cpp
@@ -166,7 +166,7 @@ static const char *deg_debug_ogdf_node_color(const DebugContext &ctx, const Deps
 	const int color_index = deg_debug_node_color_index(node);
 	const char *defaultcolor = "#DCDCDC";
 	const char *fillcolor = (color_index < 0) ? defaultcolor : deg_debug_colors_light[color_index % deg_debug_max_colors];
-	printf("      color is %s with index %d\n", fillcolor, color_index);
+	
 	return fillcolor;
 }
 
@@ -192,15 +192,11 @@ static void deg_debug_ogdf_node_single(const DebugContext &ctx, const DepsNode *
 	/* create node */
 	ogdf::node v = ctx.G->newNode();
 
-	printf("  doing node - %s\n", name.c_str());
 	ctx.GA->labelNode(v) = ogdf::String(name.c_str());
-
-	printf("  with color...\n");
 	ctx.GA->colorNode(v) = ogdf::String(deg_debug_ogdf_node_color(ctx, node)); /* ogdf::Color == ogdf::String */
 	// TODO: style/shape - rounded rect, vs straight-edge, vs ellipse?
 
 	/* add to reference mapping for later reference when building relations */
-	printf("  adding to map\n");
 	ctx.node_map[node] = v;
 }




More information about the Bf-blender-cvs mailing list