mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
21 lines
525 B
C#
21 lines
525 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;
|
|
}
|
|
}
|
|
}
|