2025-06-23 11:42:47 -07:00

20 lines
509 B
C#

using AssetRipper.SourceGenerated.Subclasses.BlendShapeData;
using AssetRipper.SourceGenerated.Subclasses.MeshBlendShapeChannel;
namespace AssetRipper.SourceGenerated.Extensions;
public static class BlendShapeDataExtensions
{
public static string? FindShapeNameByCRC(this IBlendShapeData blendShapeData, uint crc)
{
foreach (MeshBlendShapeChannel blendChannel in blendShapeData.Channels)
{
if (blendChannel.NameHash == crc)
{
return blendChannel.Name.String;
}
}
return null;
}
}