@babylonjs/node-editor 6.1.0 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50660,6 +50660,20 @@ class GraphCanvasComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component
|
|
50660
50660
|
const pointName = newDefaultInput.name;
|
50661
50661
|
const emittedNodeData = newDefaultInput.data;
|
50662
50662
|
pointA = emittedNodeData.getPortByName(pointName);
|
50663
|
+
if (!pointA) {
|
50664
|
+
for (let i = 0; i < emittedNodeData.outputs.length; i++) {
|
50665
|
+
const output = emittedNodeData.outputs[i];
|
50666
|
+
const outputData = output.data;
|
50667
|
+
const outputBlockType = outputData._blockType;
|
50668
|
+
if (outputBlockType === pointB.data._blockType) {
|
50669
|
+
pointA = output;
|
50670
|
+
break;
|
50671
|
+
}
|
50672
|
+
}
|
50673
|
+
if (!pointA) {
|
50674
|
+
return;
|
50675
|
+
}
|
50676
|
+
}
|
50663
50677
|
if (!emittedNodeData.isInput) {
|
50664
50678
|
nodeA = this.props.onEmitNewNode(emittedNodeData);
|
50665
50679
|
}
|