Interpolate checkbox now updates interpolation flag

This commit is contained in:
MattNL
2022-09-25 17:12:39 -04:00
parent 7fc01ddc6e
commit 6ba9bc1999
2 changed files with 7 additions and 1 deletions

View File

@@ -227,6 +227,7 @@
this.InterpolationCheckbox.Text = "Interpolates (not simulated above)";
this.InterpolationCheckbox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.InterpolationCheckbox.UseSelectable = true;
this.InterpolationCheckbox.CheckedChanged += new System.EventHandler(this.InterpolationCheckbox_CheckedChanged);
//
// AnimationPlayBtn
//
@@ -260,7 +261,7 @@
this.tileLabel.Location = new System.Drawing.Point(20, 311);
this.tileLabel.MinimumSize = new System.Drawing.Size(170, 19);
this.tileLabel.Name = "tileLabel";
this.tileLabel.Size = new System.Drawing.Size(170, 19);
this.tileLabel.Size = new System.Drawing.Size(57, 19);
this.tileLabel.TabIndex = 20;
this.tileLabel.Text = "tileLabel";
this.tileLabel.Theme = MetroFramework.MetroThemeStyle.Dark;

View File

@@ -607,5 +607,10 @@ namespace PckStudio.Forms.Editor
"You can also export your animation as an Java Edition tile animation. It will also export the actual texture in the same spot.", "Java Edition Support");
}
private void InterpolationCheckbox_CheckedChanged(object sender, EventArgs e)
{
// Interpolation flag wasn't being updated when the check box changed, this fixes the issue
currentAnimation.Interpolate = InterpolationCheckbox.Checked;
}
}
}