Browse Source

Fixed not being able to see multiple documents at once

flabbet 7 months ago
parent
commit
3d12f583bf
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/Drawie
  2. 1 1
      src/PixiEditor/Views/Main/ViewportControls/Viewport.axaml

+ 1 - 1
src/Drawie

@@ -1 +1 @@
-Subproject commit 50007fb51e74bde8cfbb1a30f8d040ef0804e43e
+Subproject commit 7fe29ad3ea438046a66b300e85608af3c8544309

+ 1 - 1
src/PixiEditor/Views/Main/ViewportControls/Viewport.axaml

@@ -181,7 +181,7 @@
         <rendering:Scene
             Focusable="True" Name="scene"
             ZIndex="1"
-            SceneRenderer="{Binding Source={viewModels:MainVM DocumentManagerSVM}, Path=ActiveDocument.SceneRenderer}"
+            SceneRenderer="{Binding Document.SceneRenderer, ElementName=vpUc, Mode=OneWay}"
             Document="{Binding Document, ElementName=vpUc, Mode=OneWay}"
             UseTouchGestures="{Binding UseTouchGestures, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=viewportControls:Viewport}, Mode=OneWay}"
             Center="{Binding Center, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=viewportControls:Viewport}, Mode=OneWayToSource}"