remove GltfMeshUtility.ForceUniqueName.

automatically force when createAvatar
This commit is contained in:
ousttrue
2023-12-04 17:04:44 +09:00
parent e3404e1f16
commit b5a7c1b13b
4 changed files with 1 additions and 28 deletions

View File

@@ -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()

View File

@@ -17,12 +17,6 @@ namespace UniGLTF.MeshUtility
/// </summary>
public class GltfMeshUtility
{
/// <summary>
/// GameObject 名が重複している場合にリネームする。
/// 最初に実行(Avatar生成時のエラーを回避)
/// </summary>
public bool ForceUniqueName = false;
/// <summary>
/// Same as VRM-0 normalization
/// - Mesh

View File

@@ -98,16 +98,6 @@ namespace VRM
throw new ArgumentException();
}
if (ForceUniqueName)
{
throw new NotImplementedException();
// 必用?
var animator = target.GetComponent<Animator>();
var newAvatar = AvatarDescription.RecreateAvatar(animator);
animator.avatar = newAvatar;
}
// TODO: update: spring
// TODO: update: constraint
// TODO: update: firstPerson offset

View File

@@ -102,16 +102,6 @@ namespace UniVRM10
throw new ArgumentException();
}
if (ForceUniqueName)
{
throw new NotImplementedException();
// 必用?
var animator = target.GetComponent<Animator>();
var newAvatar = AvatarDescription.RecreateAvatar(animator);
animator.avatar = newAvatar;
}
// TODO: update: spring
// TODO: update: constraint
// TODO: update: firstPerson offset