2 Commits
warn ... v0.9.x

Author SHA1 Message Date
Syoyo Fujita
2af1d84b25 Merge pull request #136 from KaoCC/v0.9.x
remove the keyword `register' for C++17
2017-08-18 12:58:33 +09:00
Chih-Chen Kao
b5f348e37e remove the keyword `register' for C++17
remove the keyword `register' for C++17
2017-08-17 02:16:11 +08:00

View File

@@ -659,7 +659,7 @@ static bool exportFaceGroupToShape(
const size_t nIndexs = shape.mesh.indices.size(); const size_t nIndexs = shape.mesh.indices.size();
if (nIndexs % 3 == 0) { if (nIndexs % 3 == 0) {
shape.mesh.normals.resize(shape.mesh.positions.size()); shape.mesh.normals.resize(shape.mesh.positions.size());
for (register size_t iIndices = 0; iIndices < nIndexs; iIndices += 3) { for (size_t iIndices = 0; iIndices < nIndexs; iIndices += 3) {
float3 v1, v2, v3; float3 v1, v2, v3;
memcpy(&v1, &shape.mesh.positions[shape.mesh.indices[iIndices] * 3], memcpy(&v1, &shape.mesh.positions[shape.mesh.indices[iIndices] * 3],
sizeof(float3)); sizeof(float3));