Skip to content

Commit

Permalink
SkinANIM - Remove 'SetMask' function to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
NessieHax committed Aug 16, 2024
1 parent 99d6fc4 commit 8f4109b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion PCK-Studio/Forms/Editor/ANIMEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ private void templateButton_Click(object sender, EventArgs e)
if (diag.ShowDialog(this) != DialogResult.OK)
return;

SkinANIM templateANIM = SkinANIM.Empty.SetMask(Templates[diag.SelectedItem]);
SkinANIM templateANIM = Templates[diag.SelectedItem];
DialogResult prompt = MessageBox.Show(this, "Would you like to add this preset's effects to your current ANIM? Otherwise all of your effects will be cleared. Either choice can be undone by pressing \"Restore ANIM\".", "", MessageBoxButtons.YesNo);
if (prompt == DialogResult.Yes)
templateANIM |= ruleset.Value;
Expand Down
5 changes: 0 additions & 5 deletions PCK-Studio/Internal/SkinANIM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,5 @@ public object Clone()
{
return MemberwiseClone();
}

internal SkinANIM SetMask(SkinAnimMask skinAnimMask)
{
return new SkinANIM(skinAnimMask);
}
}
}

0 comments on commit 8f4109b

Please sign in to comment.