From b0e84c9e9b160a74fcc76bf48c1c17476b5c7c87 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sat, 3 Jan 2015 14:40:05 -1000 Subject: [PATCH] fix uv scaling for animated (non-square) textures --- src/mcedit2/rendering/blockmodels.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mcedit2/rendering/blockmodels.pyx b/src/mcedit2/rendering/blockmodels.pyx index a0c2bae..395b929 100644 --- a/src/mcedit2/rendering/blockmodels.pyx +++ b/src/mcedit2/rendering/blockmodels.pyx @@ -228,7 +228,7 @@ class BlockModels(object): l, t, w, h = textureAtlas.texCoordsByName[texture] u1, v1, u2, v2 = uv uw = (w * (u2 - u1)) / 16 - vh = (h * (v2 - v1)) / 16 + vh = (w * (v2 - v1)) / 16 # w is assumed to be the height of a single frame in an animation xxxxx read .mcmeta u1 += l u2 = u1 + uw