diff options
Diffstat (limited to 'UVtools.Core/Operations/OperationRedrawModel.cs')
-rw-r--r-- | UVtools.Core/Operations/OperationRedrawModel.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/UVtools.Core/Operations/OperationRedrawModel.cs b/UVtools.Core/Operations/OperationRedrawModel.cs index 06ae5ff..26e6630 100644 --- a/UVtools.Core/Operations/OperationRedrawModel.cs +++ b/UVtools.Core/Operations/OperationRedrawModel.cs @@ -244,10 +244,7 @@ namespace UVtools.Core.Operations SlicerFile[fullMatLayerIndex].LayerMat = fullMat; } - lock (progress.Mutex) - { - progress++; - } + progress.LockAndIncrement(); }); return !progress.Token.IsCancellationRequested; |