|
@@ -215,7 +215,7 @@ internal partial class DocumentViewModel : PixiObservableObject, IDocument
|
|
|
ILineOverlayHandler IDocument.LineToolOverlayHandler => LineToolOverlayViewModel;
|
|
|
IReferenceLayerHandler IDocument.ReferenceLayerHandler => ReferenceLayerViewModel;
|
|
|
IAnimationHandler IDocument.AnimationHandler => AnimationDataViewModel;
|
|
|
-
|
|
|
+ public bool UsesLegacyBlending { get; private set; }
|
|
|
|
|
|
private DocumentViewModel()
|
|
|
{
|
|
@@ -292,7 +292,6 @@ internal partial class DocumentViewModel : PixiObservableObject, IDocument
|
|
|
var viewModel = new DocumentViewModel();
|
|
|
viewModel.Operations.ResizeCanvas(new VecI(builderInstance.Width, builderInstance.Height), ResizeAnchor.Center);
|
|
|
|
|
|
-
|
|
|
var acc = viewModel.Internals.ActionAccumulator;
|
|
|
|
|
|
if (builderInstance.UsesLegacyColorBlending || IsFileWithOldColorBlending(serializerData))
|
|
@@ -759,6 +758,11 @@ internal partial class DocumentViewModel : PixiObservableObject, IDocument
|
|
|
OnPropertyChanged(nameof(HorizontalSymmetryAxisYBindable));
|
|
|
}
|
|
|
|
|
|
+ public void SetProcessingColorSpace(ColorSpace infoColorSpace)
|
|
|
+ {
|
|
|
+ UsesLegacyBlending = infoColorSpace.IsSrgb;
|
|
|
+ }
|
|
|
+
|
|
|
public void SetSize(VecI size)
|
|
|
{
|
|
|
var oldSize = size;
|