Fixed index format for UNITY_2017_3_OR_NEWER

This commit is contained in:
ousttrue
2018-04-19 13:52:05 +09:00
parent b7445eac90
commit 6fef371608
2 changed files with 8 additions and 0 deletions

View File

@@ -145,6 +145,10 @@ namespace VRM
var mesh = new Mesh();
mesh.name = srcMesh.name + ".baked";
#if UNITY_2017_3_OR_NEWER
mesh.indexFormat = srcMesh.indexFormat;
#endif
srcRenderer.BakeMesh(mesh);
//var m = src.localToWorldMatrix;