Explorar o código

Fix nme self port connection

David Catuhe %!s(int64=5) %!d(string=hai) anos
pai
achega
8be2afaf05
Modificáronse 3 ficheiros con 7 adicións e 3 borrados
  1. 2 2
      dist/preview release/babylon.js
  2. 4 0
      nodeEditor/src/diagram/graphCanvas.tsx
  3. 1 1
      package.json

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 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"
     }
-}
+}