Use texmap fallback if we fail to load the png file. Fixes #213.

This commit is contained in:
Leonardo Zide 2018-03-17 12:21:38 -07:00
parent a3cace3091
commit 47b28d06be

View file

@ -2134,8 +2134,18 @@ bool lcPiecesLibrary::ReadMeshData(lcFile& File, const lcMatrix44& CurrentTransf
{ {
TextureMap = &TextureStack[TextureStack.GetSize() - 1]; TextureMap = &TextureStack[TextureStack.GetSize() - 1];
if (TextureMap->Fallback) if (TextureMap->Texture)
continue; {
if (TextureMap->Fallback)
continue;
}
else
{
if (!TextureMap->Fallback)
continue;
TextureMap = nullptr;
}
} }
int Dummy; int Dummy;