diff --git a/Assets/VRM/Runtime/IO/MaterialIO/VrmMaterialExporterUtility.cs b/Assets/VRM/Runtime/IO/MaterialIO/VrmMaterialExporterUtility.cs index 9c220c65c..396e482af 100644 --- a/Assets/VRM/Runtime/IO/MaterialIO/VrmMaterialExporterUtility.cs +++ b/Assets/VRM/Runtime/IO/MaterialIO/VrmMaterialExporterUtility.cs @@ -8,7 +8,7 @@ namespace VRM { return RenderPipelineUtility.GetRenderPipelineType() switch { - RenderPipelineTypes.UniversalRenderPipeline => throw new System.NotImplementedException(), + RenderPipelineTypes.UniversalRenderPipeline => throw new System.NotImplementedException("URP exporter not implemented"), RenderPipelineTypes.BuiltinRenderPipeline => new BuiltInVrmMaterialExporter(), _ => new BuiltInVrmMaterialExporter(), }; diff --git a/Assets/VRM/Runtime/SkinnedMeshUtility/VRMBoneNormalizer.cs b/Assets/VRM/Runtime/SkinnedMeshUtility/VRMBoneNormalizer.cs index e8e4cde50..9df426565 100644 --- a/Assets/VRM/Runtime/SkinnedMeshUtility/VRMBoneNormalizer.cs +++ b/Assets/VRM/Runtime/SkinnedMeshUtility/VRMBoneNormalizer.cs @@ -97,7 +97,7 @@ namespace VRM } } - go.AddComponent().avatar = newAvatar; + go.GetOrAddComponent().avatar = newAvatar; } /// diff --git a/Assets/VRM_Samples/RuntimeExporterSample/VRMRuntimeExporter.cs b/Assets/VRM_Samples/RuntimeExporterSample/VRMRuntimeExporter.cs index 5744a3b55..091800880 100644 --- a/Assets/VRM_Samples/RuntimeExporterSample/VRMRuntimeExporter.cs +++ b/Assets/VRM_Samples/RuntimeExporterSample/VRMRuntimeExporter.cs @@ -18,6 +18,7 @@ namespace VRM.RuntimeExporterSample { Load(); } + UseNormalize = GUILayout.Toggle(UseNormalize, "UseNormalize"); GUI.enabled = m_model != null;