From 6ba9bc1999ec96223f2a7628382a8ca9621f3260 Mon Sep 17 00:00:00 2001 From: MattNL Date: Sun, 25 Sep 2022 17:12:39 -0400 Subject: [PATCH] Interpolate checkbox now updates interpolation flag --- PCK-Studio/Forms/Editor/AnimationEditor.Designer.cs | 3 ++- PCK-Studio/Forms/Editor/AnimationEditor.cs | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/PCK-Studio/Forms/Editor/AnimationEditor.Designer.cs b/PCK-Studio/Forms/Editor/AnimationEditor.Designer.cs index c1adf481..ddfb948a 100644 --- a/PCK-Studio/Forms/Editor/AnimationEditor.Designer.cs +++ b/PCK-Studio/Forms/Editor/AnimationEditor.Designer.cs @@ -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; diff --git a/PCK-Studio/Forms/Editor/AnimationEditor.cs b/PCK-Studio/Forms/Editor/AnimationEditor.cs index e8ccd8c8..3aba640b 100644 --- a/PCK-Studio/Forms/Editor/AnimationEditor.cs +++ b/PCK-Studio/Forms/Editor/AnimationEditor.cs @@ -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; + } } }