mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 01:26:50 -04:00
Fix custom models stuffing up with non power of two skins (Thanks Goodly)
This commit is contained in:
parent
ab867fa6fc
commit
7639e8924c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user