mirror of
https://github.com/leozide/leocad
synced 2025-01-30 20:34:56 +01:00
Use texmap fallback if we fail to load the png file. Fixes #213.
This commit is contained in:
parent
a3cace3091
commit
47b28d06be
1 changed files with 12 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue