Browse Source

Fixed adjustment node not deserializing

Krzysztof Krysiński 5 months ago
parent
commit
d440c03ed6

+ 1 - 0
src/PixiEditor.ChangeableDocument/Changeables/Graph/Nodes/FilterNodes/ApplyFilterNode.cs

@@ -23,6 +23,7 @@ public class ApplyFilterNode : RenderNode, IRenderInput
         Background = CreateRenderInput("Input", "IMAGE");
         Background = CreateRenderInput("Input", "IMAGE");
         Filter = CreateInput<Filter>("Filter", "FILTER", null);
         Filter = CreateInput<Filter>("Filter", "FILTER", null);
         Output.FirstInChain = null;
         Output.FirstInChain = null;
+        AllowHighDpiRendering = true;
     }
     }
 
 
     protected override void OnPaint(RenderContext context, DrawingSurface surface)
     protected override void OnPaint(RenderContext context, DrawingSurface surface)

+ 1 - 5
src/PixiEditor/ViewModels/Document/Nodes/FilterNodes/ColorAdjustmentsFilterNode.cs → src/PixiEditor.ChangeableDocument/Changeables/Graph/Nodes/FilterNodes/ColorAdjustmentsFilterNode.cs

@@ -1,11 +1,7 @@
 using Drawie.Backend.Core.ColorsImpl;
 using Drawie.Backend.Core.ColorsImpl;
 using Drawie.Backend.Core.Surfaces.PaintImpl;
 using Drawie.Backend.Core.Surfaces.PaintImpl;
-using Drawie.Numerics;
-using PixiEditor.ChangeableDocument.Changeables.Graph;
-using PixiEditor.ChangeableDocument.Changeables.Graph.Nodes;
-using PixiEditor.ChangeableDocument.Changeables.Graph.Nodes.FilterNodes;
 
 
-namespace PixiEditor.ViewModels.Document.Nodes.FilterNodes;
+namespace PixiEditor.ChangeableDocument.Changeables.Graph.Nodes.FilterNodes;
 
 
 [NodeInfo("ColorAdjustmentsFilter")]
 [NodeInfo("ColorAdjustmentsFilter")]
 public class ColorAdjustmentsFilterNode : FilterNode
 public class ColorAdjustmentsFilterNode : FilterNode

+ 1 - 0
src/PixiEditor/ViewModels/Document/Nodes/FilterNodes/ColorAdjustmentsFilterNodeViewModel.cs

@@ -1,5 +1,6 @@
 using Avalonia;
 using Avalonia;
 using Avalonia.Media;
 using Avalonia.Media;
+using PixiEditor.ChangeableDocument.Changeables.Graph.Nodes.FilterNodes;
 using PixiEditor.Helpers;
 using PixiEditor.Helpers;
 using PixiEditor.Models.Events;
 using PixiEditor.Models.Events;
 using PixiEditor.Models.Handlers;
 using PixiEditor.Models.Handlers;