This commit is contained in:
tamat
2016-10-20 14:42:28 +02:00
parent efd415a61b
commit 7675a361c7
2 changed files with 2 additions and 0 deletions

BIN
imgs/mynodes.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

View File

@@ -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;