Ver código fonte

Fix nme self port connection

David Catuhe 5 anos atrás
pai
commit
8be2afaf05

Diferenças do arquivo suprimidas por serem muito extensas
+ 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"
     }
-}
+}