mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-09 12:29:23 -05:00
Added BlendShapeAvatar.Restore
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user