mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-15 09:27:08 +00:00
BFRES : Some scene animation exporting fixes.
This commit is contained in:
parent
65aa3598a2
commit
368781f2aa
1 changed files with 7 additions and 1 deletions
|
@ -95,6 +95,7 @@ namespace FirstPlugin
|
|||
CameraAnim camAnim = new CameraAnim();
|
||||
camAnim.Name = camera.Name;
|
||||
camAnim.FrameCount = camera.FrameCount;
|
||||
camAnim.BakedSize = camera.BakedSize;
|
||||
camAnim.BaseData = camera.BaseData;
|
||||
if (camera.EulerZXY)
|
||||
camAnim.Flags |= CameraAnimFlags.EulerZXY;
|
||||
|
@ -175,15 +176,20 @@ namespace FirstPlugin
|
|||
public bool Perspective { get; set; }
|
||||
|
||||
[JsonProperty(Order = 5)]
|
||||
public CameraAnimData BaseData { get; set; }
|
||||
public uint BakedSize { get; set; }
|
||||
|
||||
[JsonProperty(Order = 6)]
|
||||
public CameraAnimData BaseData { get; set; }
|
||||
|
||||
[JsonProperty(Order = 7)]
|
||||
public List<CameraAnimCurve> Curves = new List<CameraAnimCurve>();
|
||||
|
||||
public CameraAnimConfig() { }
|
||||
|
||||
public CameraAnimConfig(CameraAnim camAnim)
|
||||
{
|
||||
FrameCount = camAnim.FrameCount;
|
||||
BakedSize = camAnim.BakedSize;
|
||||
Name = camAnim.Name;
|
||||
Loop = camAnim.Flags.HasFlag(CameraAnimFlags.Looping);
|
||||
EulerZXY = camAnim.Flags.HasFlag(CameraAnimFlags.EulerZXY);
|
||||
|
|
Loading…
Reference in a new issue