mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-15 19:28:48 -05:00
Improve support for Unity 6.6+
This commit is contained in:
@@ -1054,9 +1054,9 @@ namespace AssetStudio
|
||||
|
||||
public AnimationClip() { }
|
||||
|
||||
public AnimationClip(ObjectReader reader, byte[] type, JsonSerializerOptions jsonOptions, ObjectInfo objInfo) : base(reader)
|
||||
public AnimationClip(ObjectReader reader, JsonSerializerOptions jsonOptions, ObjectInfo objInfo) : base(reader)
|
||||
{
|
||||
var parsedAnimClip = JsonSerializer.Deserialize<AnimationClip>(type, jsonOptions);
|
||||
var parsedAnimClip = JsonSerializer.Deserialize<AnimationClip>(TypeTreeHelper.ReadTypeByteArray(reader), jsonOptions);
|
||||
m_AnimationType = parsedAnimClip.m_AnimationType;
|
||||
if (version >= 5)//5.0 and up
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user