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/ChituboxZipFile.cs')
-rw-r--r--UVtools.Core/FileFormats/ChituboxZipFile.cs14
1 files changed, 11 insertions, 3 deletions
diff --git a/UVtools.Core/FileFormats/ChituboxZipFile.cs b/UVtools.Core/FileFormats/ChituboxZipFile.cs
index d25075c..f1c1d08 100644
--- a/UVtools.Core/FileFormats/ChituboxZipFile.cs
+++ b/UVtools.Core/FileFormats/ChituboxZipFile.cs
@@ -461,7 +461,15 @@ namespace UVtools.Core.FileFormats
if (IsPHZZip) // PHZ file
{
- LayerManager[layerIndex] = new Layer(layerIndex, entry.Open(), entry.Name);
+ this[layerIndex] = new Layer(layerIndex, entry.Open(), entry.Name)
+ {
+ PositionZ = GetHeightFromLayer(layerIndex),
+ ExposureTime = GetInitialLayerValueOrNormal(layerIndex, BottomExposureTime, ExposureTime),
+ LiftHeight = GetInitialLayerValueOrNormal(layerIndex, BottomLiftHeight, LiftHeight),
+ LiftSpeed = GetInitialLayerValueOrNormal(layerIndex, BottomLiftSpeed, LiftSpeed),
+ RetractSpeed = RetractSpeed,
+ LightPWM = GetInitialLayerValueOrNormal(layerIndex, BottomLightPWM, LightPWM),
+ };
progress++;
continue;;
}
@@ -537,15 +545,15 @@ namespace UVtools.Core.FileFormats
}
}
- LayerManager[layerIndex] = new Layer(layerIndex, entry.Open(), entry.Name)
+ this[layerIndex] = new Layer(layerIndex, entry.Open(), entry.Name)
{
PositionZ = posZ,
+ ExposureTime = exposureTime,
LiftHeight = liftHeight,
LiftSpeed = liftSpeed,
RetractSpeed = retractSpeed,
LayerOffTime = lightOffDelay,
LightPWM = pwm,
- ExposureTime = exposureTime,
};
progress++;
}