mirror of
https://github.com/leozide/leocad
synced 2025-01-29 20:34:50 +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];
|
||||
|
||||
if (TextureMap->Fallback)
|
||||
continue;
|
||||
if (TextureMap->Texture)
|
||||
{
|
||||
if (TextureMap->Fallback)
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!TextureMap->Fallback)
|
||||
continue;
|
||||
|
||||
TextureMap = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
int Dummy;
|
||||
|
|
Loading…
Add table
Reference in a new issue