[Bf-blender-cvs] [b3e7a51] master: Freestyle: disabled debug code in ViewMapBuilder::ComputeIntersections().

Tamito Kajiyama noreply at git.blender.org
Mon Jul 20 01:12:04 CEST 2015


Commit: b3e7a51ebd3f5b056746220dacab40c7bff2cc36
Author: Tamito Kajiyama
Date:   Fri Aug 15 16:38:41 2014 +0900
Branches: master
https://developer.blender.org/rBb3e7a51ebd3f5b056746220dacab40c7bff2cc36

Freestyle: disabled debug code in ViewMapBuilder::ComputeIntersections().

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

M	source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp

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

diff --git a/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp b/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp
index 932c236..9ca0214 100644
--- a/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp
+++ b/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp
@@ -2112,14 +2112,14 @@ void ViewMapBuilder::ComputeIntersections(ViewMap *ioViewMap, intersection_algo
 		default:
 			break;
 	}
-	ViewMap::viewvertices_container& vvertices = ioViewMap->ViewVertices();
-	for (ViewMap::viewvertices_container::iterator vv = vvertices.begin(), vvend = vvertices.end();
-	     vv != vvend;
-	     ++vv)
-	{
-		if ((*vv)->getNature() == Nature::T_VERTEX) {
-			TVertex *tvertex = (TVertex *)(*vv);
-			if (_global.debug & G_DEBUG_FREESTYLE) {
+#if 0
+	if (_global.debug & G_DEBUG_FREESTYLE) {
+		ViewMap::viewvertices_container& vvertices = ioViewMap->ViewVertices();
+		for (ViewMap::viewvertices_container::iterator vv = vvertices.begin(), vvend = vvertices.end();
+		     vv != vvend; ++vv)
+		{
+			if ((*vv)->getNature() == Nature::T_VERTEX) {
+				TVertex *tvertex = (TVertex *)(*vv);
 				cout << "TVertex " << tvertex->getId() << " has :" << endl;
 				cout << "FrontEdgeA: " << tvertex->frontEdgeA().first << endl;
 				cout << "FrontEdgeB: " << tvertex->frontEdgeB().first << endl;
@@ -2128,6 +2128,7 @@ void ViewMapBuilder::ComputeIntersections(ViewMap *ioViewMap, intersection_algo
 			}
 		}
 	}
+#endif
 }
 
 struct less_SVertex2D : public binary_function<SVertex *, SVertex *, bool>




More information about the Bf-blender-cvs mailing list