A modification to the Node Editor to allow multiple object connections.
It is as simple as commenting out one line on the 'main.js' program.
code:
// >>> if ( this.outputs[slot].type === "objectlist" ) this.disconnectOutput(slot);
code:
LGraphNode.prototype.connect = function (slot, node, target_slot) {
.
.
.
//special case: -1 means node-connection, used for triggers
var output = this.outputs[slot];
if (target_slot === -1) {
if (output.links == null) output.links = [];
output.links.push({
id: node.id,
slot: -1
});
} else if (!output.type || //generic output
!node.inputs[target_slot].type || //generic input
output.type.toLowerCase() == node.inputs[target_slot].type.toLowerCase()) //same type
{ // 4-12-2022 wjh
// >>> if ( this.outputs[slot].type === "objectlist" ) this.disconnectOutput(slot);
|