Krzysztof Krysiński 2 tháng trước cách đây
mục cha
commit
203d6f254a
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      src/PixiEditor/Views/Nodes/ConnectionView.cs

+ 5 - 0
src/PixiEditor/Views/Nodes/ConnectionView.cs

@@ -103,6 +103,11 @@ internal class ConnectionView : TemplatedControl
             return default;
         }
 
+        if(mainCanvas != null && !mainCanvas.IsAttachedToVisualTree())
+        {
+            mainCanvas = null;
+        }
+
         Canvas canvas = mainCanvas ??= this.FindAncestorOfType<NodeGraphView>().FindDescendantOfType<Canvas>();
 
         if (property.Node is null || canvas is null)