mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-08 03:48:19 -05:00
remove GltfMeshUtility.ForceUniqueName.
automatically force when createAvatar
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user