texture coordinates.
This commit is contained in:
Kim Kulling
2017-08-02 11:35:57 +02:00
parent 232954c15e
commit 81fd027860
2 changed files with 3 additions and 3 deletions

View File

@@ -537,7 +537,7 @@ void PLYImporter::LoadVertex(const PLY::Element* pcElement, const PLY::ElementIn
if (haveTextureCoords)
{
if (mGeneratedMesh->mTextureCoords[0] == NULL)
if (mGeneratedMesh->HasTextureCoords(0))
{
mGeneratedMesh->mNumUVComponents[0] = 2;
mGeneratedMesh->mTextureCoords[0] = new aiVector3D[mGeneratedMesh->mNumVertices];