Interpolation sets properly with importing

This commit is contained in:
MattNL
2022-08-28 02:24:46 -04:00
parent e674d2fea3
commit 6bcf71eccf

View File

@@ -305,7 +305,6 @@ namespace PckStudio.Forms.Editor
currentAnimation = animationFile.properties.HasProperty("ANIM")
? new Animation(texture, animationFile.properties.GetProperty("ANIM").Item2)
: new Animation(texture);
InterpolationCheckbox.Checked = currentAnimation.Interpolate;
player = new AnimationPlayer(pictureBoxWithInterpolationMode1);
foreach (JObject content in AnimationUtil.tileData[animationSection].Children())
@@ -322,6 +321,7 @@ namespace PckStudio.Forms.Editor
private void LoadAnimationTreeView()
{
InterpolationCheckbox.Checked = currentAnimation.Interpolate;
frameTreeView.Nodes.Clear();
// $"Frame: {i}, Frame Time: {Animation.MinimumFrameTime}"
currentAnimation.GetFrames().ForEach(f => frameTreeView.Nodes.Add($"Frame: {currentAnimation.GetFrameIndex(f.Texture)}, Frame Time: {f.Ticks}"));