mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 02:25:32 -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;
|
int partIndex;
|
||||||
|
|
||||||
Model_ApplyTexture(e);
|
Model_ApplyTexture(e);
|
||||||
Models.uScale = 1.0f / cm->uScale;
|
Models.uScale = e->uScale / cm->uScale;
|
||||||
Models.vScale = 1.0f / cm->vScale;
|
Models.vScale = e->vScale / cm->vScale;
|
||||||
|
|
||||||
for (partIndex = 0; partIndex < cm->numParts; partIndex++) {
|
for (partIndex = 0; partIndex < cm->numParts; partIndex++) {
|
||||||
CustomModel_DrawPart(&cm->parts[partIndex], cm, e);
|
CustomModel_DrawPart(&cm->parts[partIndex], cm, e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user