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/Layer/LayerManager.cs')
-rw-r--r--UVtools.Core/Layer/LayerManager.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/UVtools.Core/Layer/LayerManager.cs b/UVtools.Core/Layer/LayerManager.cs
index 1895bcd..84ab961 100644
--- a/UVtools.Core/Layer/LayerManager.cs
+++ b/UVtools.Core/Layer/LayerManager.cs
@@ -166,7 +166,7 @@ namespace UVtools.Core
public void Clear()
{
//Layers = Array.Empty<Layer>();
- Layers = null;
+ _layers = null;
}
public bool Contains(Layer layer)
@@ -869,9 +869,9 @@ namespace UVtools.Core
return true;
}
- if (printHeightConfig.Enabled && SlicerFile.MaxPrintHeight > 0)
+ if (printHeightConfig.Enabled && SlicerFile.MachineZ > 0)
{
- float printHeightWithOffset = Layer.RoundHeight(SlicerFile.MaxPrintHeight + printHeightConfig.Offset);
+ float printHeightWithOffset = Layer.RoundHeight(SlicerFile.MachineZ + printHeightConfig.Offset);
if (SlicerFile.PrintHeight > printHeightWithOffset)
{
foreach (var layer in this)