From debdd79a7adb51e77495166bda42b1b611b155d4 Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Sat, 20 Oct 2018 17:29:57 +0800 Subject: [PATCH] Fix build --- src/meshloader.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/meshloader.cpp b/src/meshloader.cpp index 47dbca59..a01ed47f 100644 --- a/src/meshloader.cpp +++ b/src/meshloader.cpp @@ -132,13 +132,11 @@ MeshLoader::MeshLoader(void *meshlite, int meshId, int triangulatedMeshId, QColo triangulatedFace.color.setGreenF(useColorG); triangulatedFace.color.setBlueF(useColorB); QVector3D positions[3]; - float area = 1.0; - float angles[3] = {1.0, 1.0, 1.0}; if (smoothNormal) { inputTrianglesForSmoothAngle.push_back({ - triangleIndices[firstIndex + 0], - triangleIndices[firstIndex + 1], - triangleIndices[firstIndex + 2] + (size_t)triangleIndices[firstIndex + 0], + (size_t)triangleIndices[firstIndex + 1], + (size_t)triangleIndices[firstIndex + 2] }); inputNormalsForSmoothAngle.push_back(QVector3D(triangleNormals[firstIndex + 0], triangleNormals[firstIndex + 1],