mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-05 18:35:03 +00:00
Set DialogResult when invalid anim is passed to ANIMEditor
This commit is contained in:
@@ -64,7 +64,11 @@ namespace PckStudio.Forms.Utilities.Skins
|
||||
public ANIMEditor(string ANIM)
|
||||
{
|
||||
InitializeComponent();
|
||||
if (!SkinANIM.IsValidANIM(ANIM)) Close();
|
||||
if (!SkinANIM.IsValidANIM(ANIM))
|
||||
{
|
||||
DialogResult = DialogResult.Abort;
|
||||
Close();
|
||||
}
|
||||
anim = new SkinANIM(ANIM);
|
||||
|
||||
bobbingCheckBox.CheckedChanged += (sender, EventArgs) => { flagChanged(sender, EventArgs, eANIM_EFFECTS.HEAD_BOBBING_DISABLED); };
|
||||
|
||||
Reference in New Issue
Block a user