瀏覽代碼

Fixed background affected by opacity

CPKreuz 1 年之前
父節點
當前提交
a1635d6f42
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/PixiEditor.ChangeableDocument/Changeables/Graph/Nodes/StructureNode.cs

+ 2 - 0
src/PixiEditor.ChangeableDocument/Changeables/Graph/Nodes/StructureNode.cs

@@ -5,6 +5,7 @@ using PixiEditor.ChangeableDocument.Enums;
 using PixiEditor.ChangeableDocument.Helpers;
 using PixiEditor.ChangeableDocument.Rendering;
 using PixiEditor.DrawingApi.Core;
+using PixiEditor.DrawingApi.Core.ColorsImpl;
 using PixiEditor.DrawingApi.Core.Surfaces.PaintImpl;
 using PixiEditor.Numerics;
 
@@ -108,6 +109,7 @@ public abstract class StructureNode : Node, IReadOnlyStructureNode, IBackgroundI
 
     protected void DrawBackground(Surface workingSurface, RenderingContext context)
     {
+        blendPaint.Color = Colors.White;
         DrawSurface(workingSurface, Background.Value, context, null); 
     }