Browse Source

Fixed flickering

Krzysztof Krysiński 2 months ago
parent
commit
e465987169
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/PixiEditor/Models/Rendering/SceneRenderer.cs

+ 1 - 2
src/PixiEditor/Models/Rendering/SceneRenderer.cs

@@ -4,10 +4,8 @@ using Drawie.Backend.Core.Numerics;
 using PixiEditor.ChangeableDocument.Changeables.Interfaces;
 using PixiEditor.ChangeableDocument.Changeables.Interfaces;
 using PixiEditor.ChangeableDocument.Rendering;
 using PixiEditor.ChangeableDocument.Rendering;
 using Drawie.Backend.Core.Surfaces;
 using Drawie.Backend.Core.Surfaces;
-using Drawie.Backend.Core.Surfaces.ImageData;
 using Drawie.Numerics;
 using Drawie.Numerics;
 using PixiEditor.ChangeableDocument.Changeables.Animations;
 using PixiEditor.ChangeableDocument.Changeables.Animations;
-using PixiEditor.ChangeableDocument.Changeables.Graph;
 using PixiEditor.ChangeableDocument.Changeables.Graph.Interfaces;
 using PixiEditor.ChangeableDocument.Changeables.Graph.Interfaces;
 using PixiEditor.ChangeableDocument.Changeables.Graph.Nodes;
 using PixiEditor.ChangeableDocument.Changeables.Graph.Nodes;
 using PixiEditor.ChangeableDocument.Changeables.Graph.Nodes.Workspace;
 using PixiEditor.ChangeableDocument.Changeables.Graph.Nodes.Workspace;
@@ -55,6 +53,7 @@ internal class SceneRenderer : IDisposable
 
 
             var rendered = RenderGraph(target, resolution, targetOutput, finalGraph);
             var rendered = RenderGraph(target, resolution, targetOutput, finalGraph);
             cachedTextures[adjustedTargetOutput] = rendered;
             cachedTextures[adjustedTargetOutput] = rendered;
+            return;
         }
         }
 
 
         var cachedTexture = cachedTextures[adjustedTargetOutput];
         var cachedTexture = cachedTextures[adjustedTargetOutput];