From 7e4cbc56f51bb87333e56acbb5d85de8c7e88f01 Mon Sep 17 00:00:00 2001 From: DavidWyand-GG Date: Tue, 5 Nov 2013 16:50:25 -0500 Subject: [PATCH] Fix for DTS Vertex Paint and 2nd UV with LODs Fix game from https://github.com/GarageGames/Torque3D/issues/230 --- Engine/source/ts/tsShape.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Engine/source/ts/tsShape.cpp b/Engine/source/ts/tsShape.cpp index b7f791bed..726efabff 100644 --- a/Engine/source/ts/tsShape.cpp +++ b/Engine/source/ts/tsShape.cpp @@ -1177,6 +1177,11 @@ void TSShape::assembleShape() { TSMesh::smVertsList[i] = mesh->verts.address(); TSMesh::smTVertsList[i] = mesh->tverts.address(); + if (smReadVersion >= 26) + { + TSMesh::smTVerts2List[i] = mesh->tverts2.address(); + TSMesh::smColorsList[i] = mesh->colors.address(); + } TSMesh::smNormsList[i] = mesh->norms.address(); TSMesh::smEncodedNormsList[i] = mesh->encodedNorms.address(); TSMesh::smDataCopied[i] = !skip; // as long as we didn't skip this mesh, the data should be in shape now