|
3981 | 3981 | var aSource = (type+"").toLowerCase().split(","); |
3982 | 3982 | var aDest = aSlots[i].type=="0"||aSlots[i].type=="*"?"0":aSlots[i].type; |
3983 | 3983 | aDest = (aDest+"").toLowerCase().split(","); |
3984 | | - for(sI=0;sI<aSource.length;sI++){ |
3985 | | - for(dI=0;dI<aDest.length;dI++){ |
| 3984 | + for(var sI=0;sI<aSource.length;sI++){ |
| 3985 | + for(var dI=0;dI<aDest.length;dI++){ |
3986 | 3986 | if (aSource[sI]=="_event_") aSource[sI] = LiteGraph.EVENT; |
3987 | 3987 | if (aDest[sI]=="_event_") aDest[sI] = LiteGraph.EVENT; |
3988 | 3988 | if (aSource[sI]=="*") aSource[sI] = 0; |
|
4001 | 4001 | var aSource = (type+"").toLowerCase().split(","); |
4002 | 4002 | var aDest = aSlots[i].type=="0"||aSlots[i].type=="*"?"0":aSlots[i].type; |
4003 | 4003 | aDest = (aDest+"").toLowerCase().split(","); |
4004 | | - for(sI=0;sI<aSource.length;sI++){ |
4005 | | - for(dI=0;dI<aDest.length;dI++){ |
| 4004 | + for(var sI=0;sI<aSource.length;sI++){ |
| 4005 | + for(var dI=0;dI<aDest.length;dI++){ |
4006 | 4006 | if (aSource[sI]=="*") aSource[sI] = 0; |
4007 | 4007 | if (aDest[sI]=="*") aDest[sI] = 0; |
4008 | 4008 | if (aSource[sI] == aDest[dI]) { |
|
4033 | 4033 | if (target_node && target_node.constructor === Number) { |
4034 | 4034 | target_node = this.graph.getNodeById(target_node); |
4035 | 4035 | } |
4036 | | - target_slot = target_node.findInputSlotByType(target_slotType, false, true); |
| 4036 | + var target_slot = target_node.findInputSlotByType(target_slotType, false, true); |
4037 | 4037 | if (target_slot >= 0 && target_slot !== null){ |
4038 | 4038 | //console.debug("CONNbyTYPE type "+target_slotType+" for "+target_slot) |
4039 | 4039 | return this.connect(slot, target_node, target_slot); |
|
4086 | 4086 | if (source_node && source_node.constructor === Number) { |
4087 | 4087 | source_node = this.graph.getNodeById(source_node); |
4088 | 4088 | } |
4089 | | - source_slot = source_node.findOutputSlotByType(source_slotType, false, true); |
| 4089 | + var source_slot = source_node.findOutputSlotByType(source_slotType, false, true); |
4090 | 4090 | if (source_slot >= 0 && source_slot !== null){ |
4091 | 4091 | //console.debug("CONNbyTYPE OUT! type "+source_slotType+" for "+source_slot) |
4092 | 4092 | return source_node.connect(source_slot, this, slot); |
@@ -12302,7 +12302,7 @@ LGraphNode.prototype.executeAction = function(action) |
12302 | 12302 |
|
12303 | 12303 | var aProps = LiteGraph.availableCanvasOptions; |
12304 | 12304 | aProps.sort(); |
12305 | | - for(pI in aProps){ |
| 12305 | + for(var pI in aProps){ |
12306 | 12306 | var pX = aProps[pI]; |
12307 | 12307 | panel.addWidget( "boolean", pX, graphcanvas[pX], {key: pX, on: "True", off: "False"}, fUpdate); |
12308 | 12308 | } |
|
0 commit comments