Explorar o código

Merge pull request #1207 from PixiEditor/fix-socket-rendering

Dont render connection if socket invisible
Krzysztof Krysiński hai 1 semana
pai
achega
2df43d8353
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/PixiEditor/Views/Nodes/ConnectionRenderer.cs

+ 1 - 1
src/PixiEditor/Views/Nodes/ConnectionRenderer.cs

@@ -51,7 +51,7 @@ public class ConnectionRenderer : Control
                     ? socket
                     : null;
 
-            if (inputSocket == null || outputSocket == null)
+            if (inputSocket == null || outputSocket == null || !inputSocket.IsVisible || !outputSocket.IsVisible)
             {
                 continue;
             }