Browse Source

Fix issue with y UV translation. Fixes #2119.

Paul Arden 5 years ago
parent
commit
7230f32c14
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/glTF2/glTF2Importer.cpp

+ 1 - 1
code/glTF2/glTF2Importer.cpp

@@ -205,7 +205,7 @@ inline void SetMaterialTextureProperty(std::vector<int> &embeddedTexIdxs, Asset
 		if (prop.textureTransformSupported) {
 			aiUVTransform transform;
 			transform.mTranslation.x = prop.TextureTransformExt_t.offset[0];
-			transform.mTranslation.y = prop.TextureTransformExt_t.offset[0];
+			transform.mTranslation.y = prop.TextureTransformExt_t.offset[1];
 			transform.mRotation = prop.TextureTransformExt_t.rotation;
 			transform.mScaling.x = prop.TextureTransformExt_t.scale[0];
 			transform.mScaling.y = prop.TextureTransformExt_t.scale[1];