Browse Source

Fixed symmetry not updating

Krzysztof Krysiński 3 months ago
parent
commit
7fe30eace9

+ 1 - 1
src/PixiEditor.ChangeableDocument/Changes/Drawing/DrawRasterLine_UpdateableChange.cs

@@ -6,7 +6,7 @@ using Drawie.Numerics;
 
 namespace PixiEditor.ChangeableDocument.Changes.Drawing;
 
-internal class DrawRasterLine_UpdateableChange : UpdateableChange
+internal class DrawRasterLine_UpdateableChange : InterruptableUpdateableChange
 {
     private readonly Guid memberGuid;
     private VecD from;

+ 3 - 3
src/PixiEditor/Models/DocumentModels/ChangeExecutionController.cs

@@ -70,15 +70,15 @@ internal class ChangeExecutionController
     {
         if (!CanStartExecutor(force))
             return false;
-        if (force)
-            currentSession?.ForceStop();
 
+        currentSession?.ForceStop();
         return TryStartExecutorInternal(brandNewExecutor);
     }
 
     private bool CanStartExecutor(bool force)
     {
-        return (currentSession is null && _queuedExecutor is null) || force;
+        return (currentSession is null && _queuedExecutor is null) || force ||
+               currentSession is { BlocksOtherActions: false };
     }
 
     private bool TryStartExecutorInternal(UpdateableChangeExecutor executor)