mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-25 05:40:21 -04:00
Fix parsing of AnimationClip assets via typetree for Unity versions < 5
This commit is contained in:
parent
13f37ec260
commit
66229e564a
@ -1036,7 +1036,18 @@ namespace AssetStudio
|
||||
{
|
||||
var parsedAnimClip = JsonSerializer.Deserialize<AnimationClip>(type, jsonOptions);
|
||||
m_AnimationType = parsedAnimClip.m_AnimationType;
|
||||
m_Legacy = parsedAnimClip.m_Legacy;
|
||||
if (version >= 5)//5.0 and up
|
||||
{
|
||||
m_Legacy = parsedAnimClip.m_Legacy;
|
||||
}
|
||||
else if (version >= 4)//4.0 and up
|
||||
{
|
||||
m_Legacy = m_AnimationType == AnimationType.Legacy;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_Legacy = true;
|
||||
}
|
||||
m_Compressed = parsedAnimClip.m_Compressed;
|
||||
m_UseHighQualityCurve = parsedAnimClip.m_UseHighQualityCurve;
|
||||
m_RotationCurves = parsedAnimClip.m_RotationCurves;
|
||||
|
Loading…
Reference in New Issue
Block a user