Merge pull request #17 from nicholasbishop/patch-1

Fix array access when loading colored binary STLs
pull/18/head
Alexander Gessler 2013-02-09 16:06:45 -08:00
commit f95f7c03ce
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ bool STLImporter::LoadBinaryFile()
DefaultLogger::get()->info("STL: Mesh has vertex colors");
}
aiColor4D* clr = &pMesh->mColors[0][pMesh->mNumFaces*3];
aiColor4D* clr = &pMesh->mColors[0][i*3];
clr->a = 1.0f;
if (bIsMaterialise) // fuck, this is reversed
{