diff options
Diffstat (limited to 'UVtools.Core/Operations/OperationRaftRelief.cs')
-rw-r--r-- | UVtools.Core/Operations/OperationRaftRelief.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/UVtools.Core/Operations/OperationRaftRelief.cs b/UVtools.Core/Operations/OperationRaftRelief.cs index ffbfe6e..93b8104 100644 --- a/UVtools.Core/Operations/OperationRaftRelief.cs +++ b/UVtools.Core/Operations/OperationRaftRelief.cs @@ -242,9 +242,9 @@ namespace UVtools.Core.Operations Parallel.For(_ignoreFirstLayers, firstSupportLayerIndex, layerIndex => { if (progress.Token.IsCancellationRequested) return; - using var result = SlicerFile[layerIndex].LayerMat; - using var original = result.Clone(); - var target = GetRoiOrDefault(result); + using var mat = SlicerFile[layerIndex].LayerMat; + using var original = mat.Clone(); + var target = GetRoiOrDefault(mat); switch (ReliefType) { @@ -268,8 +268,8 @@ namespace UVtools.Core.Operations break; } - ApplyMask(original, result); - SlicerFile[layerIndex].LayerMat = result; + ApplyMask(original, target); + SlicerFile[layerIndex].LayerMat = mat; progress.LockAndIncrement(); }); |