Modifying one line corrects the wire color bug.
(Only Inputs which are hooked up show the the wire color matching the datatytpe, which is nice.)
(Also for SwDPDT, wire color is NOT neutral for non-hooked up inputs, call it a Bug in SwDPDT.)
// if (this.isInputConnected(this.internal.on*1)) { ctx.strokeStyle = LGraphCanvas.link_type_colors[this.inputs[0].type];}
if (this.isInputConnected(this.internal.poleIndex)) { ctx.strokeStyle = LGraphCanvas.link_type_colors[this.inputs[0].type];}
(No more corrections, due to short term Travel, so corrected SwRotary not updated yet.)
- Brian
|