[HSR] fix parsing for Renderer, AnimationClip
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user