From d32ea4452b50c09d5aa0d79e4481e560667153d6 Mon Sep 17 00:00:00 2001 From: MayNL Date: Sun, 15 Feb 2026 11:02:44 -0500 Subject: [PATCH] Edit button now appears on all skins --- PCK-Studio/Controls/PckEditor.cs | 10 ++-------- PckStudio.ModelSupport/SkinModelImporter.cs | 6 +++--- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/PCK-Studio/Controls/PckEditor.cs b/PCK-Studio/Controls/PckEditor.cs index e772aa0d..ce323e13 100644 --- a/PCK-Studio/Controls/PckEditor.cs +++ b/PCK-Studio/Controls/PckEditor.cs @@ -894,15 +894,9 @@ namespace PckStudio.Controls } viewFileInfoToolStripMenuItem.Visible = true; - if (asset.HasProperty("BOX")) + if (asset.Type == PckAssetType.SkinFile) { - buttonEdit.Text = "EDIT BOXES"; - buttonEdit.Visible = true; - } - else if (asset.HasProperty("ANIM") && - asset.GetProperty("ANIM", s => SkinANIM.FromString(s) == (SkinAnimMask.RESOLUTION_64x64 | SkinAnimMask.SLIM_MODEL))) - { - buttonEdit.Text = "View Skin"; + buttonEdit.Text = "EDIT SKIN"; buttonEdit.Visible = true; } diff --git a/PckStudio.ModelSupport/SkinModelImporter.cs b/PckStudio.ModelSupport/SkinModelImporter.cs index 77ee8199..35c7caa9 100644 --- a/PckStudio.ModelSupport/SkinModelImporter.cs +++ b/PckStudio.ModelSupport/SkinModelImporter.cs @@ -43,9 +43,9 @@ namespace PckStudio.ModelSupport private SkinModelImporter() { - InternalAddProvider(new("Pck skin model(*.psm)", "*.psm"), ImportPsm, ExportPsm); - InternalAddProvider(new("Block bench model(*.bbmodel)", "*.bbmodel"), ImportBlockBenchModel, ExportBlockBenchModel); - InternalAddProvider(new("Bedrock (Legacy) Model(*.geo.json;*.json)", "*.geo.json;*.json"), ImportBedrockJson, ExportBedrockJson); + InternalAddProvider(new("PCK Skin Model(*.psm)", "*.psm"), ImportPsm, ExportPsm); + InternalAddProvider(new("Blockbench Legacy project(*.bbmodel)", "*.bbmodel"), ImportBlockBenchModel, ExportBlockBenchModel); + InternalAddProvider(new("Bedrock Legacy Entity Model(*.geo.json;*.json)", "*.geo.json;*.json"), ImportBedrockJson, ExportBedrockJson); } internal static SkinModelInfo ImportPsm(string filepath)