Browse Source

Sadly, commeted rect based undo for this release

flabbet 3 years ago
parent
commit
6395777153
1 changed files with 4 additions and 3 deletions
  1. 4 3
      PixiEditor/Models/Tools/BitmapOperationTool.cs

+ 4 - 3
PixiEditor/Models/Tools/BitmapOperationTool.cs

@@ -67,10 +67,11 @@ namespace PixiEditor.Models.Tools
                 finalRect = SKRectI.Create(doc.ActiveLayer.OffsetX, doc.ActiveLayer.OffsetY, doc.ActiveLayer.Width, doc.ActiveLayer.Height);
             }
 
-            if (UseDocumentRectForUndo)
-            {
+            //Commented, because rect based undo is still a little buggy
+            //if (UseDocumentRectForUndo)
+            //{
                 finalRect = SKRectI.Create(0, 0, doc.Width, doc.Height);
-            }
+            //}
 
             _change = new StorageBasedChange(doc, new[] { new LayerChunk(doc.ActiveLayer, finalRect) });
         }