Fix custom models stuffing up with non power of two skins (Thanks Goodly)

This commit is contained in:
UnknownShadow200 2021-04-12 19:43:52 +10:00
parent ab867fa6fc
commit 7639e8924c

View File

@ -757,8 +757,8 @@ static void CustomModel_Draw(struct Entity* e) {
int partIndex;
Model_ApplyTexture(e);
Models.uScale = 1.0f / cm->uScale;
Models.vScale = 1.0f / cm->vScale;
Models.uScale = e->uScale / cm->uScale;
Models.vScale = e->vScale / cm->vScale;
for (partIndex = 0; partIndex < cm->numParts; partIndex++) {
CustomModel_DrawPart(&cm->parts[partIndex], cm, e);