Browse Source

Fixed rendering layer

flabbet 11 months ago
parent
commit
5ce5a383d9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/PixiEditor.ChangeableDocument/Rendering/DocumentRenderer.cs

+ 2 - 1
src/PixiEditor.ChangeableDocument/Rendering/DocumentRenderer.cs

@@ -162,7 +162,8 @@ public class DocumentRenderer
             for (int y = 0; y < sizeInChunks.Y; y++)
             for (int y = 0; y < sizeInChunks.Y; y++)
             {
             {
                 VecI chunkPos = new(x, y);
                 VecI chunkPos = new(x, y);
-                OneOf<Chunk, EmptyChunk> chunk = RenderChunk(chunkPos, resolution, node, frameTime);
+                RectI globalClippingRect = new(0, 0, Document.Size.X, Document.Size.Y);
+                OneOf<Chunk, EmptyChunk> chunk = RenderChunk(chunkPos, resolution, node, frameTime, globalClippingRect);
                 if (chunk.IsT0)
                 if (chunk.IsT0)
                 {
                 {
                     VecI pos = chunkPos * resolution.PixelSize(); 
                     VecI pos = chunkPos * resolution.PixelSize();