Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/freestyle/intern/view_map/OccluderSource.cpp')
-rw-r--r--source/blender/freestyle/intern/view_map/OccluderSource.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/view_map/OccluderSource.cpp b/source/blender/freestyle/intern/view_map/OccluderSource.cpp
index 5af618dd6f6..0cbad57b44a 100644
--- a/source/blender/freestyle/intern/view_map/OccluderSource.cpp
+++ b/source/blender/freestyle/intern/view_map/OccluderSource.cpp
@@ -36,6 +36,8 @@
#include "OccluderSource.h"
+#include "BKE_global.h"
+
OccluderSource::OccluderSource(const GridHelpers::Transform& t, WingedEdge& we)
: wingedEdge(we), valid(false), transform(t)
{
@@ -127,8 +129,10 @@ void OccluderSource::getOccluderProscenium(real proscenium[4])
GridHelpers::expandProscenium (proscenium, cachedPolygon);
next();
}
- cout << "Proscenium: (" << proscenium[0] << ", " << proscenium[1] << ", " << proscenium[2] << ", "
- << proscenium[3] << ")" << endl;
+ if (G.debug & G_DEBUG_FREESTYLE) {
+ cout << "Proscenium: (" << proscenium[0] << ", " << proscenium[1] << ", " << proscenium[2] << ", "
+ << proscenium[3] << ")" << endl;
+ }
}
real OccluderSource::averageOccluderArea()