Skip to content

Commit

Permalink
update renderer and animation clip
Browse files Browse the repository at this point in the history
  • Loading branch information
Escartem committed Dec 4, 2024
1 parent 1a482d7 commit 98eaa30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion AssetStudio/Classes/AnimationClip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,7 @@ public class ClipMuscleConstant : IYAMLExportable
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)
Expand Down
5 changes: 5 additions & 0 deletions AssetStudio/Classes/Renderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public abstract class Renderer : Component
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)
{
Expand Down Expand Up @@ -237,6 +238,10 @@ protected Renderer(ObjectReader reader) : base(reader)
if (reader.Game.Type.IsSR())
{
var RenderFlag = reader.ReadUInt32();
if (HasStreamingMipmapBias(reader.serializedType))
{
var m_StreamingMipmapBias = reader.ReadSingle();
}
reader.AlignStream();
}
}
Expand Down

0 comments on commit 98eaa30

Please sign in to comment.