Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Core/FileFormats/ZCodeFile.cs')
-rw-r--r--UVtools.Core/FileFormats/ZCodeFile.cs4
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);