diff options
Diffstat (limited to 'UVtools.Core/Operations/OperationDynamicLayerHeight.cs')
-rw-r--r-- | UVtools.Core/Operations/OperationDynamicLayerHeight.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/UVtools.Core/Operations/OperationDynamicLayerHeight.cs b/UVtools.Core/Operations/OperationDynamicLayerHeight.cs index c53ecdf..24930d6 100644 --- a/UVtools.Core/Operations/OperationDynamicLayerHeight.cs +++ b/UVtools.Core/Operations/OperationDynamicLayerHeight.cs @@ -655,11 +655,12 @@ namespace UVtools.Core.Operations ReUseLayer(layerIndex); } - SlicerFile.SuppressRebuildProperties = true; - SlicerFile.LayerManager.Layers = layers.ToArray(); - SlicerFile.LayerManager.RebuildLayersProperties(false); + SlicerFile.SuppressRebuildPropertiesWork(() => + { + SlicerFile.LayerManager.Layers = layers.ToArray(); + }, true, false); - // Set exposures times + // Set exposures times per layer var exposureDictionary = ExposureTableDictionary; for (uint layerIndex = 0; layerIndex < SlicerFile.LayerCount; layerIndex++) { @@ -693,8 +694,6 @@ namespace UVtools.Core.Operations Debug.WriteLine(layer.Index); }*/ - SlicerFile.SuppressRebuildProperties = false; - report.NewLayerCount = SlicerFile.LayerCount; report.NewPrintTime = SlicerFile.PrintTime; Tag = report; |