From 9db444cd466e6d1e52648c7675169444c67551dd Mon Sep 17 00:00:00 2001 From: Alessio Quaglino Date: Tue, 16 May 2023 10:24:15 -0700 Subject: [PATCH] Fixed texture mapping bug. Before this fix, the first texture coordinate was not correctly processed. Fixes #859. PiperOrigin-RevId: 532501028 Change-Id: I1fe9ca470f4d64af606479b91387e43bc56c23dc --- src/user/user_mesh.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user/user_mesh.cc b/src/user/user_mesh.cc index c9446fab..99d38e09 100644 --- a/src/user/user_mesh.cc +++ b/src/user/user_mesh.cc @@ -711,7 +711,7 @@ void mjCMesh::LoadOBJ(mjResource* resource) { } // flip the second texcoord - for (int i=1; i