diff options
Diffstat (limited to 'source/blender/freestyle/intern/view_map/AverageAreaGridDensityProvider.cpp')
-rw-r--r-- | source/blender/freestyle/intern/view_map/AverageAreaGridDensityProvider.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/view_map/AverageAreaGridDensityProvider.cpp b/source/blender/freestyle/intern/view_map/AverageAreaGridDensityProvider.cpp index 6b66ce17373..b984d5dba29 100644 --- a/source/blender/freestyle/intern/view_map/AverageAreaGridDensityProvider.cpp +++ b/source/blender/freestyle/intern/view_map/AverageAreaGridDensityProvider.cpp @@ -7,6 +7,8 @@ #include "AverageAreaGridDensityProvider.h" +#include "BLI_sys_types.h" + #include "BKE_global.h" namespace Freestyle { @@ -48,7 +50,7 @@ void AverageAreaGridDensityProvider::initialize(const real proscenium[4], real s float prosceniumHeight = (proscenium[3] - proscenium[2]); real cellArea = 0.0; - unsigned numFaces = 0; + uint numFaces = 0; for (source.begin(); source.isValid(); source.next()) { Polygon3r &poly(source.getGridSpacePolygon()); Vec3r min, max; @@ -66,7 +68,7 @@ void AverageAreaGridDensityProvider::initialize(const real proscenium[4], real s } _cellSize = sqrt(cellArea); - unsigned maxCells = 931; // * 1.1 = 1024 + uint maxCells = 931; // * 1.1 = 1024 if (std::max(prosceniumWidth, prosceniumHeight) / _cellSize > maxCells) { if (G.debug & G_DEBUG_FREESTYLE) { cout << "Scene-dependent cell size (" << _cellSize << " square) is too small." << endl; |