diff --git a/Assets/UniGLTF/Editor/MeshUtility/MeshUtilityDialog.cs b/Assets/UniGLTF/Editor/MeshUtility/MeshUtilityDialog.cs index 3a35821f2..7caaf44ae 100644 --- a/Assets/UniGLTF/Editor/MeshUtility/MeshUtilityDialog.cs +++ b/Assets/UniGLTF/Editor/MeshUtility/MeshUtilityDialog.cs @@ -280,11 +280,10 @@ namespace UniGLTF.MeshUtility bool MeshFreezeGui() { - var forceUniqueName = ToggleIsModified("ForceUniqueName", ref MeshUtility.ForceUniqueName); var blendShape = ToggleIsModified("BlendShape", ref MeshUtility.FreezeBlendShape); var scale = ToggleIsModified("Scale", ref MeshUtility.FreezeScaling); var rotation = ToggleIsModified("Rotation", ref MeshUtility.FreezeRotation); - return forceUniqueName || blendShape || scale || rotation; + return blendShape || scale || rotation; } protected virtual bool MeshIntegrateGui() diff --git a/Assets/UniGLTF/Runtime/MeshUtility/GltfMeshUtility.cs b/Assets/UniGLTF/Runtime/MeshUtility/GltfMeshUtility.cs index bffca8e6d..ce3b5a23b 100644 --- a/Assets/UniGLTF/Runtime/MeshUtility/GltfMeshUtility.cs +++ b/Assets/UniGLTF/Runtime/MeshUtility/GltfMeshUtility.cs @@ -17,12 +17,6 @@ namespace UniGLTF.MeshUtility /// public class GltfMeshUtility { - /// - /// GameObject 名が重複している場合にリネームする。 - /// 最初に実行(Avatar生成時のエラーを回避?) - /// - public bool ForceUniqueName = false; - /// /// Same as VRM-0 normalization /// - Mesh diff --git a/Assets/VRM/Runtime/SkinnedMeshUtility/VrmMeshUtility.cs b/Assets/VRM/Runtime/SkinnedMeshUtility/VrmMeshUtility.cs index 37a9abdf8..aa3e0b272 100644 --- a/Assets/VRM/Runtime/SkinnedMeshUtility/VrmMeshUtility.cs +++ b/Assets/VRM/Runtime/SkinnedMeshUtility/VrmMeshUtility.cs @@ -98,16 +98,6 @@ namespace VRM throw new ArgumentException(); } - if (ForceUniqueName) - { - throw new NotImplementedException(); - - // 必用? - var animator = target.GetComponent(); - var newAvatar = AvatarDescription.RecreateAvatar(animator); - animator.avatar = newAvatar; - } - // TODO: update: spring // TODO: update: constraint // TODO: update: firstPerson offset diff --git a/Assets/VRM10/Runtime/MeshUtility/Vrm10MeshUtility.cs b/Assets/VRM10/Runtime/MeshUtility/Vrm10MeshUtility.cs index c106b6c28..7c4330a98 100644 --- a/Assets/VRM10/Runtime/MeshUtility/Vrm10MeshUtility.cs +++ b/Assets/VRM10/Runtime/MeshUtility/Vrm10MeshUtility.cs @@ -102,16 +102,6 @@ namespace UniVRM10 throw new ArgumentException(); } - if (ForceUniqueName) - { - throw new NotImplementedException(); - - // 必用? - var animator = target.GetComponent(); - var newAvatar = AvatarDescription.RecreateAvatar(animator); - animator.avatar = newAvatar; - } - // TODO: update: spring // TODO: update: constraint // TODO: update: firstPerson offset