Skip to content

Commit

Permalink
Fixed background Layer color after delete redo
Browse files Browse the repository at this point in the history
  • Loading branch information
flabbet committed Mar 9, 2021
1 parent f437e2d commit 5387ce9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions PixiEditor/Models/Undo/StorageBasedChange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public Layer[] LoadLayersFromDevice()
IsActive = storedLayer.IsActive,
Width = storedLayer.Width,
Height = storedLayer.Height,
LayerHighlightColor = storedLayer.LayerHighlightColor
};
layers[i].ChangeGuid(storedLayer.LayerGuid);

Expand Down
3 changes: 3 additions & 0 deletions PixiEditor/Models/Undo/UndoLayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public record UndoLayer

public Guid LayerGuid { get; init; }

public string LayerHighlightColor { get; set; }

public string Name { get; set; }

public int LayerIndex { get; set; }
Expand Down Expand Up @@ -47,6 +49,7 @@ public UndoLayer(string storedPngLayerName, Layer layer, int layerIndex)
Opacity = layer.Opacity;
IsActive = layer.IsActive;
LayerGuid = layer.LayerGuid;
LayerHighlightColor = layer.LayerHighlightColor;
}
}
}

0 comments on commit 5387ce9

Please sign in to comment.