From 7639e8924c971c16c342e2a3d37fd67fcd6380e9 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 12 Apr 2021 19:43:52 +1000 Subject: [PATCH] Fix custom models stuffing up with non power of two skins (Thanks Goodly) --- src/Model.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model.c b/src/Model.c index 1b635c8b4..0a6b71c94 100644 --- a/src/Model.c +++ b/src/Model.c @@ -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);