diff --git a/imgs/mynodes.png b/imgs/mynodes.png new file mode 100644 index 000000000..29ed2ff9c Binary files /dev/null and b/imgs/mynodes.png differ diff --git a/src/litegraph.js b/src/litegraph.js index 98326af92..4602b3205 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -1538,6 +1538,7 @@ LGraphNode.prototype.setOutputData = function(slot,data) * retrieves the input data (data traveling through the connection) from one slot * @method getInputData * @param {number} slot +* @param {boolean} force_update if set to true it will force the connected node of this slot to output data into this link * @return {*} data or if it is not connected returns undefined */ LGraphNode.prototype.getInputData = function( slot, force_update ) @@ -1551,6 +1552,7 @@ LGraphNode.prototype.getInputData = function( slot, force_update ) var link_id = this.inputs[slot].link; var link = this.graph.links[ link_id ]; + //used to extract data from the incomming connection if(!force_update) return link.data;