remove dead code.
parent
6d04e16c7e
commit
5c7bed01f1
|
@ -5,8 +5,6 @@ Open Asset Import Library (assimp)
|
||||||
|
|
||||||
Copyright (c) 2006-2020, assimp team
|
Copyright (c) 2006-2020, assimp team
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use of this software in source and binary forms,
|
Redistribution and use of this software in source and binary forms,
|
||||||
|
@ -101,11 +99,13 @@ static bool IsAsciiSTL(const char *buffer, unsigned int fileSize) {
|
||||||
|
|
||||||
const char *bufferEnd = buffer + fileSize;
|
const char *bufferEnd = buffer + fileSize;
|
||||||
|
|
||||||
if (!SkipSpaces(&buffer))
|
if (!SkipSpaces(&buffer)) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (buffer + 5 >= bufferEnd)
|
if (buffer + 5 >= bufferEnd) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
bool isASCII(strncmp(buffer, "solid", 5) == 0);
|
bool isASCII(strncmp(buffer, "solid", 5) == 0);
|
||||||
if (isASCII) {
|
if (isASCII) {
|
||||||
|
@ -386,7 +386,6 @@ void STLImporter::LoadASCIIFile(aiNode *root) {
|
||||||
pMesh->mNormals[i].y = normalBuffer[i].y;
|
pMesh->mNormals[i].y = normalBuffer[i].y;
|
||||||
pMesh->mNormals[i].z = normalBuffer[i].z;
|
pMesh->mNormals[i].z = normalBuffer[i].z;
|
||||||
}
|
}
|
||||||
// memcpy(pMesh->mNormals, &normalBuffer[0].x, pMesh->mNumVertices * sizeof(aiVector3D));
|
|
||||||
normalBuffer.clear();
|
normalBuffer.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue