From 468d1472c2d443829b34858dbe33c3c93d7ec63f Mon Sep 17 00:00:00 2001 From: max Date: Wed, 20 Jan 2021 13:20:28 +0100 Subject: [PATCH] Mesh Copy Index Format. --- Runtime/Scripts/ModelBaker/MeshUtils.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Runtime/Scripts/ModelBaker/MeshUtils.cs b/Runtime/Scripts/ModelBaker/MeshUtils.cs index faa9897..a432b4e 100644 --- a/Runtime/Scripts/ModelBaker/MeshUtils.cs +++ b/Runtime/Scripts/ModelBaker/MeshUtils.cs @@ -9,6 +9,7 @@ namespace TAO.VertexAnimation Mesh copy = new Mesh { name = mesh.name, + indexFormat = mesh.indexFormat, vertices = mesh.vertices, triangles = mesh.triangles, normals = mesh.normals, @@ -21,7 +22,7 @@ namespace TAO.VertexAnimation uv5 = mesh.uv5, uv6 = mesh.uv6, uv7 = mesh.uv7, - uv8 = mesh.uv8, + uv8 = mesh.uv8 }; copy.RecalculateBounds();