Freestyle: disabled debug code in ViewMapBuilder::ComputeIntersections().
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Fri, 15 Aug 2014 07:38:41 +0000 (16:38 +0900)
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Sun, 19 Jul 2015 21:18:03 +0000 (06:18 +0900)
source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp

index 932c23698dcb29051658c4bf3a23293d4752fc0a..9ca021475b2fe94c591a88f7026b2707cbdf5da3 100644 (file)
@@ -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>