From c2d9dcb4b3aa28faf0912f0e2186737d0dc916d4 Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Mon, 13 May 2024 20:19:21 +0200 Subject: [PATCH] ModelImporter - Add notice when exporting models with 64x32 textures to bedrock legacy model format --- PCK-Studio/Internal/ModelImporter.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/PCK-Studio/Internal/ModelImporter.cs b/PCK-Studio/Internal/ModelImporter.cs index 3c3a556d..be6d66e8 100644 --- a/PCK-Studio/Internal/ModelImporter.cs +++ b/PCK-Studio/Internal/ModelImporter.cs @@ -432,14 +432,18 @@ namespace PckStudio.Internal }; } // Bedrock Legacy Model - // TODO: Add notice for 64x32 skin being incompatible due to lack of texture size information. -miku - else if (fileName.EndsWith(".json")) + else if (fileName.EndsWith(".json") && modelInfo.Texture.Height == modelInfo.Texture.Width) { bedrockModel = new BedrockLegacyModel { { $"geometry.{Application.ProductName}.{Path.GetFileNameWithoutExtension(fileName)}", selectedGeometry } }; } + else + { + MessageBox.Show("Can't export to Bedrock Legacy Model.", "Invalid Texture Dimensions", MessageBoxButtons.OK, MessageBoxIcon.Error); + return; + } if (bedrockModel is not null) {