mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-31 13:50:48 +00:00
Fix incorrect mapping of texture indices for UE1 models.
This commit is contained in:
parent
351a4c9a5a
commit
cd20d707d4
1 changed files with 3 additions and 2 deletions
|
@ -246,8 +246,9 @@ void FUE1Model::RenderFrame( FModelRenderer *renderer, FGameTexture *skin, int f
|
|||
FGameTexture *sskin = skin;
|
||||
if ( !sskin )
|
||||
{
|
||||
if (surfaceskinids && surfaceskinids[i].isValid())
|
||||
sskin = TexMan.GetGameTexture(surfaceskinids[i], true);
|
||||
int ssIndex = groups[i].texNum;
|
||||
if (surfaceskinids && surfaceskinids[ssIndex].isValid())
|
||||
sskin = TexMan.GetGameTexture(surfaceskinids[ssIndex], true);
|
||||
if ( !sskin )
|
||||
{
|
||||
vofs += vsize;
|
||||
|
|
Loading…
Reference in a new issue