[HSR] fix parsing for Renderer, AnimationClip

This commit is contained in:
yarik0chka
2024-09-15 23:45:58 +05:00
parent 72a4c3c5d6
commit f59f6a4e9a
2 changed files with 6 additions and 1 deletions

View File

@@ -1459,7 +1459,7 @@ namespace AssetStudio
public bool m_KeepOriginalPositionY;
public bool m_KeepOriginalPositionXZ;
public bool m_HeightFromFeet;
public static bool HasShortIndexArray(SerializedType type) => type.Match("E708B1872AE48FD688AC012DF4A7A178") || type.Match("055AA41C7639327940F8900103A10356");
public static bool HasShortIndexArray(SerializedType type) => type.Match("E708B1872AE48FD688AC012DF4A7A178") || type.Match("055AA41C7639327940F8900103A10356") || type.Match("82E1E738FBDE87C5A8DAE868F0578A4D");
public ClipMuscleConstant() { }
public ClipMuscleConstant(ObjectReader reader)

View File

@@ -25,6 +25,7 @@ namespace AssetStudio
private bool isNewHeader = false;
public static bool HasPrope(SerializedType type) => type.Match("F622BC5EE0E86D7BDF8C912DD94DCBF5") || type.Match("9255FA54269ADD294011FDA525B5FCAC");
public static bool HasStreamingMipmapBias(SerializedType type) => type.Match("3086DE02B7269C6DE7E840C57C244649");
protected Renderer(ObjectReader reader) : base(reader)
{
@@ -237,6 +238,10 @@ namespace AssetStudio
if (reader.Game.Type.IsSR())
{
var RenderFlag = reader.ReadUInt32();
if (HasStreamingMipmapBias(reader.serializedType))
{
var m_StreamingMipmapBias = reader.ReadSingle();
}
reader.AlignStream();
}
}