Merge remote-tracking branch 'refs/remotes/jagenjo/master'

This commit is contained in:
Kristofer
2018-01-01 14:28:05 +01:00
4 changed files with 2416 additions and 8554 deletions

File diff suppressed because it is too large Load Diff

6942
build/litegraph.min.js vendored

File diff suppressed because it is too large Load Diff

View File

@@ -2414,7 +2414,6 @@ LGraphNode.prototype.disconnectInput = function( slot )
for(var i = 0, l = output.links.length; i < l; i++)
{
var link_id = output.links[i];
var link_info = this.graph.links[ link_id ];
if( link_info.target_id == this.id )
{
output.links.splice(i,1);
@@ -2422,6 +2421,8 @@ LGraphNode.prototype.disconnectInput = function( slot )
}
}
delete this.graph.links[ link_id ]; //remove from the pool
if( this.onConnectionsChange )
this.onConnectionsChange( LiteGraph.INPUT, slot, false, link_info, input );
if( target_node.onConnectionsChange )

View File

@@ -313,7 +313,7 @@ LiteGraph.registerNodeType("visualization/graph", {
function ImageFade()
{
this.addInputs([["img1","image"],["img2","image"],["fade","number"]]);
this.addInput("","image");
this.addOutput("","image");
this.properties = {fade:0.5,width:512,height:512};
}
@@ -714,4 +714,4 @@ ImageWebcam.prototype.onDrawBackground = function(ctx)
LiteGraph.registerNodeType("graphics/webcam", ImageWebcam );
})();
})();