diff options
Diffstat (limited to 'UVtools.Core/FileFormats/ZCodeFile.cs')
-rw-r--r-- | UVtools.Core/FileFormats/ZCodeFile.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/UVtools.Core/FileFormats/ZCodeFile.cs b/UVtools.Core/FileFormats/ZCodeFile.cs index ffff100..417ecc1 100644 --- a/UVtools.Core/FileFormats/ZCodeFile.cs +++ b/UVtools.Core/FileFormats/ZCodeFile.cs @@ -125,7 +125,7 @@ namespace UVtools.Core.FileFormats public float VolumeMl { get; set; } [XmlElement("thickness")] - public float LayerHeight { get; set; } + public float LayerHeight { get; set; } = FileFormat.DefaultLayerHeight; [XmlElement("price")] public float Price { get; set; } @@ -276,7 +276,7 @@ namespace UVtools.Core.FileFormats public override float LayerHeight { - get => ManifestFile.Job.LayerHeight; + get => ManifestFile.Job.LayerHeight > 0 ? ManifestFile.Job.LayerHeight : ManifestFile.Profile.Slice.LayerHeight; set { ManifestFile.Job.LayerHeight = ManifestFile.Profile.Slice.LayerHeight = Layer.RoundHeight(value); |