From 74cae0eec7c8394715b8afd4d064d3f97f304205 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Mon, 26 Apr 2021 13:59:37 +0900 Subject: [PATCH] rename --- Assets/VRM10/Runtime/IO/Model/MeshImporter.cs | 4 ++-- Assets/VRM10/Runtime/IO/Model/ModelExporter.cs | 4 ++-- Assets/VRM10/Runtime/IO/Vrm10Importer.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/VRM10/Runtime/IO/Model/MeshImporter.cs b/Assets/VRM10/Runtime/IO/Model/MeshImporter.cs index 5f5af64d2..6d073c3cc 100644 --- a/Assets/VRM10/Runtime/IO/Model/MeshImporter.cs +++ b/Assets/VRM10/Runtime/IO/Model/MeshImporter.cs @@ -3,7 +3,7 @@ using UnityEngine; namespace UniVRM10 { - public static class MeshLoader + public static class MeshImporter { /// /// VrmLib.Mesh => UnityEngine.Mesh @@ -11,7 +11,7 @@ namespace UniVRM10 /// /// /// - public static void LoadMesh(this UnityEngine.Mesh mesh, VrmLib.Mesh src, VrmLib.Skin skin = null) + public static void LoadSharedMesh(UnityEngine.Mesh mesh, VrmLib.Mesh src, VrmLib.Skin skin = null) { mesh.vertices = src.VertexBuffer.Positions.GetSpan().ToArray(); mesh.normals = src.VertexBuffer.Normals?.GetSpan().ToArray(); diff --git a/Assets/VRM10/Runtime/IO/Model/ModelExporter.cs b/Assets/VRM10/Runtime/IO/Model/ModelExporter.cs index 5a2b748e7..c104874f2 100644 --- a/Assets/VRM10/Runtime/IO/Model/ModelExporter.cs +++ b/Assets/VRM10/Runtime/IO/Model/ModelExporter.cs @@ -28,7 +28,7 @@ namespace UniVRM10 { Model = new VrmLib.Model(VrmLib.Coordinates.Unity); - ToGlbModel(root); + Export(root); // humanoid { @@ -52,7 +52,7 @@ namespace UniVRM10 return Model; } - public VrmLib.Model ToGlbModel(GameObject root) + VrmLib.Model Export(GameObject root) { if (Model == null) { diff --git a/Assets/VRM10/Runtime/IO/Vrm10Importer.cs b/Assets/VRM10/Runtime/IO/Vrm10Importer.cs index c0dc1b561..886535764 100644 --- a/Assets/VRM10/Runtime/IO/Vrm10Importer.cs +++ b/Assets/VRM10/Runtime/IO/Vrm10Importer.cs @@ -141,7 +141,7 @@ namespace UniVRM10 // submesh 方式 var mesh = new UnityEngine.Mesh(); mesh.name = src.Name; - mesh.LoadMesh(src.Meshes[0], src.Skin); + MeshImporter.LoadSharedMesh(mesh, src.Meshes[0], src.Skin); m_map.Meshes.Add(src, mesh); Meshes.Add(new MeshWithMaterials {