Added BlendShapeAvatar.Restore

This commit is contained in:
ousttrue
2018-09-06 15:34:31 +09:00
parent 3091ed4a1d
commit 5238767ca7
2 changed files with 39 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
namespace VRM
{
[Serializable]
public struct BlendShapeKey : IEquatable<BlendShapeKey>
public struct BlendShapeKey : IEquatable<BlendShapeKey>, IComparable<BlendShapeKey>
{
public string Name;
public BlendShapePreset Preset;
@@ -91,5 +91,15 @@ namespace VRM
{
return this.Equals(CreateFrom(clip));
}
public int CompareTo(BlendShapeKey other)
{
if (Preset != other.Preset)
{
return Preset - other.Preset;
}
return 0;
}
}
}