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:
authorTiago Conceição <Tiago_caza@hotmail.com>2020-11-01 08:48:25 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2020-11-01 08:48:25 +0300
commit15094f96cc42a39f40a1f8182bb0bf6716b32db2 (patch)
tree2d4abd0abf20661b835bdd61859025ca7853007f /UVtools.Core/FileFormats/PhotonSFile.cs
parent679f088811756a10d55deaa15ab69cbf534d8b87 (diff)
v1.1.1v1.1.1
* (Fix) PHZ, PWS, LGS, SL1 and ZCodex per layer settings and implement missing properties on decode * (Fix) LGS and PHZ Zip wasn't setting the position z per layer * (Fix) Add missing ctb v3 per layer settings on edit parameters window * (Fix) PWS per layer settings internal LiftSpeed was calculating in mm/min, changed to mm/sec
Diffstat (limited to 'UVtools.Core/FileFormats/PhotonSFile.cs')
-rw-r--r--UVtools.Core/FileFormats/PhotonSFile.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/UVtools.Core/FileFormats/PhotonSFile.cs b/UVtools.Core/FileFormats/PhotonSFile.cs
index 6964522..4243edb 100644
--- a/UVtools.Core/FileFormats/PhotonSFile.cs
+++ b/UVtools.Core/FileFormats/PhotonSFile.cs
@@ -512,7 +512,15 @@ namespace UVtools.Core.FileFormats
using (var image = layerData[layerIndex].Decode())
{
- this[layerIndex] = new Layer((uint) layerIndex, image);
+ this[layerIndex] = new Layer((uint) layerIndex, image)
+ {
+ PositionZ = GetHeightFromLayer((uint)layerIndex),
+ ExposureTime = GetInitialLayerValueOrNormal((uint)layerIndex, BottomExposureTime, ExposureTime),
+ LiftHeight = GetInitialLayerValueOrNormal((uint)layerIndex, BottomLiftHeight, LiftHeight),
+ LiftSpeed = GetInitialLayerValueOrNormal((uint)layerIndex, BottomLiftSpeed, LiftSpeed),
+ RetractSpeed = RetractSpeed,
+ LightPWM = GetInitialLayerValueOrNormal((uint)layerIndex, BottomLightPWM, LightPWM),
+ };
lock (progress.Mutex)
{