Browse Source

Fix not refreshing scene

Krzysztof Krysiński 1 year ago
parent
commit
5a4ffd842b

+ 0 - 1
src/PixiEditor.AvaloniaUI/Views/Visuals/Scene.cs

@@ -147,7 +147,6 @@ internal class DrawSceneOperation : SkiaDrawOperation
 
 
     private SKPaint _paint = new SKPaint();
-    private SKPaint _checkerPaint;
 
     public DrawSceneOperation(Surface surface, DocumentViewModel document, VecI contentPosition, double scale,
         double angle, bool flipX, bool flipY, Rect bounds, double opacity) : base(bounds)

+ 1 - 2
src/PixiEditor.Zoombox/Zoombox.axaml.cs

@@ -485,8 +485,7 @@ public partial class Zoombox : UserControl, INotifyPropertyChanged
 
     private void OnMainCanvasSizeChanged(object sender, SizeChangedEventArgs e)
     {
-        //TODO: This causes app freeze on window resize
-        //OnPropertyChange(this);
+        OnPropertyChange(this);
     }
 
     private void OnGridSizeChanged(object sender, SizeChangedEventArgs args)