|
@@ -344,7 +344,7 @@ void LWOImporter::InternReadFile( const std::string& pFile,
|
|
|
|
|
|
// copy all vertices
|
|
|
for (unsigned int q = 0; q < face.mNumIndices;++q,++vert) {
|
|
|
- register unsigned int idx = face.mIndices[q];
|
|
|
+ unsigned int idx = face.mIndices[q];
|
|
|
*pv++ = layer.mTempPoints[idx] /*- layer.mPivot*/;
|
|
|
|
|
|
// process UV coordinates
|
|
@@ -491,7 +491,7 @@ void LWOImporter::ComputeNormals(aiMesh* mesh, const std::vector<unsigned int>&
|
|
|
aiFace& face = *begin;
|
|
|
for (unsigned int i = 0; i < face.mNumIndices;++i)
|
|
|
{
|
|
|
- register unsigned int tt = face.mIndices[i];
|
|
|
+ unsigned int tt = face.mIndices[i];
|
|
|
sSort.Add(mesh->mVertices[tt],tt,*it);
|
|
|
}
|
|
|
}
|
|
@@ -510,7 +510,7 @@ void LWOImporter::ComputeNormals(aiMesh* mesh, const std::vector<unsigned int>&
|
|
|
unsigned int* beginIdx = face.mIndices, *const endIdx = face.mIndices+face.mNumIndices;
|
|
|
for (; beginIdx != endIdx; ++beginIdx)
|
|
|
{
|
|
|
- register unsigned int idx = *beginIdx;
|
|
|
+ unsigned int idx = *beginIdx;
|
|
|
sSort.FindPositions(mesh->mVertices[idx],*it,posEpsilon,poResult,true);
|
|
|
std::vector<unsigned int>::const_iterator a, end = poResult.end();
|
|
|
|
|
@@ -533,7 +533,7 @@ void LWOImporter::ComputeNormals(aiMesh* mesh, const std::vector<unsigned int>&
|
|
|
unsigned int* beginIdx = face.mIndices, *const endIdx = face.mIndices+face.mNumIndices;
|
|
|
for (; beginIdx != endIdx; ++beginIdx)
|
|
|
{
|
|
|
- register unsigned int idx = *beginIdx;
|
|
|
+ unsigned int idx = *beginIdx;
|
|
|
if (vertexDone[idx])
|
|
|
continue;
|
|
|
sSort.FindPositions(mesh->mVertices[idx],*it,posEpsilon,poResult,true);
|
|
@@ -735,7 +735,7 @@ void LWOImporter::LoadLWOPoints(unsigned int length)
|
|
|
{
|
|
|
throw DeadlyImportError( "LWO2: Points chunk length is not multiple of vertexLen (12)");
|
|
|
}
|
|
|
- register unsigned int regularSize = (unsigned int)mCurLayer->mTempPoints.size() + length / 12;
|
|
|
+ unsigned int regularSize = (unsigned int)mCurLayer->mTempPoints.size() + length / 12;
|
|
|
if (mIsLWO2)
|
|
|
{
|
|
|
mCurLayer->mTempPoints.reserve ( regularSize + (regularSize>>2u) );
|