From 4e654a9ca144e257cba936e681ac2447dd3d3d79 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 7 Jun 2022 16:34:54 +0900 Subject: [PATCH] remove this. --- .../Runtime/UniGLTF/IO/MeshIO/MeshContext.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshContext.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshContext.cs index a30dab94d..a9271c5ec 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshContext.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshContext.cs @@ -585,21 +585,21 @@ namespace UniGLTF private (Mesh, bool) BuildMesh() { - this.AddDefaultMaterial(); + AddDefaultMaterial(); //Debug.Log(prims.ToJson()); var mesh = new Mesh { - name = this.Name + name = Name }; - this.UploadMeshVertices(mesh); - this.UploadMeshIndices(mesh); + UploadMeshVertices(mesh); + UploadMeshIndices(mesh); // NOTE: mesh.vertices では自動的に行われていたが、SetVertexBuffer では行われないため、明示的に呼び出す. mesh.RecalculateBounds(); - if (!this.HasNormal) + if (!HasNormal) { mesh.RecalculateNormals(); } @@ -658,7 +658,7 @@ namespace UniGLTF Func ctx) { Profiler.BeginSample("MeshImporter.BuildMesh"); - var (mesh, recalculateTangents) = this.BuildMesh(); + var (mesh, recalculateTangents) = BuildMesh(); Profiler.EndSample(); if (recalculateTangents) @@ -672,14 +672,14 @@ namespace UniGLTF var result = new MeshWithMaterials { Mesh = mesh, - Materials = this.MaterialIndices.Select(ctx).ToArray() + Materials = MaterialIndices.Select(ctx).ToArray() }; await awaitCaller.NextFrame(); - if (this.BlendShapes.Count > 0) + if (BlendShapes.Count > 0) { var emptyVertices = new Vector3[mesh.vertexCount]; - foreach (var blendShape in this.BlendShapes) + foreach (var blendShape in BlendShapes) { await BuildBlendShapeAsync(awaitCaller, mesh, blendShape, emptyVertices); }