Browse Source

Some stuff

flabbet 10 months ago
parent
commit
b64a6161ae

+ 3 - 0
src/PixiEditor.ChangeableDocument/Changeables/Graph/Nodes/OutputNode.cs

@@ -29,7 +29,10 @@ public class OutputNode : Node, IRenderInput, IPreviewRenderable
     protected override void OnExecute(RenderContext context)
     {
         lastDocumentSize = context.DocumentSize;
+        int saved = context.RenderSurface.Canvas.Save();
         Input.Value?.Paint(context, context.RenderSurface);
+        
+        context.RenderSurface.Canvas.RestoreToCount(saved);
     }
 
     RenderInputProperty IRenderInput.Background => Input;