mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-02 11:54:33 +00:00
ModelImporter - Add notice when exporting models with 64x32 textures to bedrock legacy model format
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user