mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-06 13:15:10 +00:00
BlockBenchModel - Add export property to class 'Element'
This commit is contained in:
@@ -63,6 +63,10 @@ namespace PckStudio.External.Format
|
||||
[JsonProperty("locked")]
|
||||
internal bool Locked;
|
||||
|
||||
[DefaultValue(true)]
|
||||
[JsonProperty("export", DefaultValueHandling = DefaultValueHandling.Ignore)]
|
||||
internal bool Export { get; } = true;
|
||||
|
||||
[JsonProperty("inflate")]
|
||||
internal float Inflate;
|
||||
|
||||
@@ -329,9 +333,6 @@ namespace PckStudio.External.Format
|
||||
[JsonProperty("model_identifier")]
|
||||
internal string ModelIdentifier { get; set; } = "";
|
||||
|
||||
[JsonProperty("visible_box")]
|
||||
internal int[] VisibleBox;
|
||||
|
||||
[JsonProperty("resolution")]
|
||||
internal TextureRes TextureResolution;
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ namespace PckStudio.Internal
|
||||
|
||||
private static void LoadElement(string boxType, Element element, ref SkinModelInfo modelInfo)
|
||||
{
|
||||
if (element.Type != "cube" || !element.UseBoxUv || !element.IsVisibile)
|
||||
if (element.Type != "cube" || !element.UseBoxUv || !element.Export)
|
||||
return;
|
||||
|
||||
boxType = TryConvertToSkinBoxType(boxType);
|
||||
|
||||
Reference in New Issue
Block a user