Skip to content

Commit

Permalink
It's now possible to change the CatMulRom-State of a spline anytime (…
Browse files Browse the repository at this point in the history
…vice-versa).
  • Loading branch information
BlizzCrafter committed Oct 16, 2020
1 parent af68f28 commit 266cc5e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions MonoGame.SplineFlower.Editor/EditorForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ private void toolStripButtonCatMulRom_Click(object sender, EventArgs e)
{
if (splineControl != null && splineControl.MySpline != null)
{
splineControl.MySpline.CatMulRom = true;
toolStripButtonCatMulRom.Enabled = false;
splineControl.MySpline.CatMulRom = !splineControl.MySpline.CatMulRom;
}
}

Expand Down Expand Up @@ -327,7 +326,6 @@ private void toolStripMenuItemImportJson_Click(object sender, EventArgs e)
toolStripNumericUpDownDuration.Value = GetJsonHandling.GetBezierSplineData.SplineWalkerDuration;
splineControl.MySpline.CatMulRom = GetJsonHandling.GetBezierSplineData.CatMulRom;
splineControl.MySpline.Loop = GetJsonHandling.GetBezierSplineData.Loop;
toolStripButtonCatMulRom.Enabled = !GetJsonHandling.GetBezierSplineData.CatMulRom;
toolStripButtonTrackLoop.Enabled = !GetJsonHandling.GetBezierSplineData.Loop;

Trigger[] loadedTrigger;
Expand Down

0 comments on commit 266cc5e

Please sign in to comment.