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/Operations/OperationCalibrateTolerance.cs')
-rw-r--r--UVtools.Core/Operations/OperationCalibrateTolerance.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/UVtools.Core/Operations/OperationCalibrateTolerance.cs b/UVtools.Core/Operations/OperationCalibrateTolerance.cs
index f5d7a13..13ad30d 100644
--- a/UVtools.Core/Operations/OperationCalibrateTolerance.cs
+++ b/UVtools.Core/Operations/OperationCalibrateTolerance.cs
@@ -730,7 +730,7 @@ namespace UVtools.Core.Operations
Parallel.For(0, LayerCount, layerIndex =>
{
- newLayers[layerIndex] = new Layer((uint)layerIndex, layers[layerIndex], SlicerFile.LayerManager);
+ newLayers[layerIndex] = new Layer((uint)layerIndex, layers[layerIndex], SlicerFile.LayerManager) {IsModified = true};
layers[layerIndex].Dispose();
lock (progress)
{
@@ -741,15 +741,15 @@ namespace UVtools.Core.Operations
if (SlicerFile.ThumbnailsCount > 0)
SlicerFile.SetThumbnails(GetThumbnail());
- SlicerFile.SuppressRebuildProperties = true;
- SlicerFile.LayerHeight = (float)LayerHeight;
- SlicerFile.BottomExposureTime = (float)BottomExposure;
- SlicerFile.ExposureTime = (float)NormalExposure;
- SlicerFile.BottomLayerCount = BottomLayers;
- SlicerFile.LayerManager.Layers = newLayers;
- SlicerFile.LayerManager.RebuildLayersProperties();
- SlicerFile.SuppressRebuildProperties = false;
-
+ SlicerFile.SuppressRebuildPropertiesWork(() =>
+ {
+ SlicerFile.LayerHeight = (float)LayerHeight;
+ SlicerFile.BottomExposureTime = (float)BottomExposure;
+ SlicerFile.ExposureTime = (float)NormalExposure;
+ SlicerFile.BottomLayerCount = BottomLayers;
+ SlicerFile.LayerManager.Layers = newLayers;
+ }, true);
+
var moveOp = new OperationMove(SlicerFile);
moveOp.Execute(progress);