Selaa lähdekoodia

Fix nme self port connection

David Catuhe 5 vuotta sitten
vanhempi
commit
8be2afaf05
3 muutettua tiedostoa jossa 7 lisäystä ja 3 poistoa
  1. 2 2
      dist/preview release/babylon.js
  2. 4 0
      nodeEditor/src/diagram/graphCanvas.tsx
  3. 1 1
      package.json

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 2 - 2
dist/preview release/babylon.js


+ 4 - 0
nodeEditor/src/diagram/graphCanvas.tsx

@@ -631,6 +631,10 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
             return;
         }
 
+        if (pointB.ownerBlock === pointA.ownerBlock) {
+            return;
+        }
+
         // Check compatibility
         let isFragmentOutput = pointB.ownerBlock.getClassName() === "FragmentOutputBlock";
         let compatibilityState = pointA.checkCompatibilityState(pointB);

+ 1 - 1
package.json

@@ -106,4 +106,4 @@
         "xhr2": "^0.1.4",
         "xmlbuilder": "8.2.2"
     }
-}
+}