ModelImporter - Add notice when exporting models with 64x32 textures to bedrock legacy model format

This commit is contained in:
miku-666
2024-05-13 20:19:21 +02:00
parent 611494934d
commit c2d9dcb4b3

View File

@@ -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)
{