mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
image
This commit is contained in:
BIN
imgs/mynodes.png
Normal file
BIN
imgs/mynodes.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 88 KiB |
@@ -1538,6 +1538,7 @@ LGraphNode.prototype.setOutputData = function(slot,data)
|
|||||||
* retrieves the input data (data traveling through the connection) from one slot
|
* retrieves the input data (data traveling through the connection) from one slot
|
||||||
* @method getInputData
|
* @method getInputData
|
||||||
* @param {number} slot
|
* @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
|
* @return {*} data or if it is not connected returns undefined
|
||||||
*/
|
*/
|
||||||
LGraphNode.prototype.getInputData = function( slot, force_update )
|
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_id = this.inputs[slot].link;
|
||||||
var link = this.graph.links[ link_id ];
|
var link = this.graph.links[ link_id ];
|
||||||
|
|
||||||
|
//used to extract data from the incomming connection
|
||||||
if(!force_update)
|
if(!force_update)
|
||||||
return link.data;
|
return link.data;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user