Skip to content

Commit

Permalink
Now properly fixed previous bug
Browse files Browse the repository at this point in the history
  • Loading branch information
flabbet committed Dec 12, 2021
1 parent 34318c0 commit aaefba3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions PixiEditor/Models/Undo/StorageBasedChange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,7 @@ public static void BasicUndoProcess(Layer[] layers, UndoLayer[] data, object[] a
for (int i = 0; i < layers.Length; i++)
{
Layer layer = layers[i];
document.Layers.SuppressNotify = true;
document.Layers.RemoveAt(data[i].LayerIndex);
document.Layers.SuppressNotify = false;
document.RemoveLayer(data[i].LayerIndex, false);

document.Layers.Insert(data[i].LayerIndex, layer);

Expand Down

0 comments on commit aaefba3

Please sign in to comment.