Revert "engine: common: mod_studio: reject models with split textures files that cannot be loaded"
This reverts commit 3256236ba2
.
This commit is contained in:
parent
b0d12f8bf9
commit
0fab5f07d0
1 changed files with 4 additions and 8 deletions
|
@ -912,15 +912,11 @@ void Mod_LoadStudioModel( model_t *mod, const void *buffer, qboolean *loaded )
|
||||||
out = (byte *)phdr + phdr->textureindex;
|
out = (byte *)phdr + phdr->textureindex;
|
||||||
memcpy( out, in, size1 + size2 ); // copy textures + skinrefs
|
memcpy( out, in, size1 + size2 ); // copy textures + skinrefs
|
||||||
phdr->length += size1 + size2;
|
phdr->length += size1 + size2;
|
||||||
|
}
|
||||||
|
else Con_Printf( S_WARN "%s: %s missing textures file\n", __func__, mod->name );
|
||||||
|
|
||||||
|
if( buffer2 )
|
||||||
Mem_Free( buffer2 ); // release T.mdl
|
Mem_Free( buffer2 ); // release T.mdl
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Con_Printf( S_WARN "%s: %s missing textures file\n", __func__, mod->name );
|
|
||||||
if( buffer2 )
|
|
||||||
Mem_Free( buffer2 ); // release T.mdl
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue