Przeglądaj źródła

fixes import

https://forum.pjrc.com/threads/45216-Two-GUI-related-bugs

Please merge afer relase of 1.52 - needs more testing.
however, the examples from that thread seem to work now.
dds
Frank 4 lat temu
rodzic
commit
49d5c6cac4
Brak konta powiązanego z adresem e-mail autora
1 zmienionych plików z 8 dodań i 6 usunięć
  1. +8
    -6
      gui/red/nodes.js

+ 8
- 6
gui/red/nodes.js Wyświetl plik

@@ -663,12 +663,14 @@ RED.nodes = (function() {
for (var w1=0;w1<n.wires.length;w1++) {
var wires = (n.wires[w1] instanceof Array)?n.wires[w1]:[n.wires[w1]];
for (var w2=0;w2<wires.length;w2++) {
var parts = wires[w2].split(":");
if (parts.length == 2 && parts[0] in node_map) {
var dst = node_map[parts[0]];
var link = {source:n,sourcePort:w1,target:dst,targetPort:parts[1]};
addLink(link);
new_links.push(link);
if (wires[w2] != null) {
var parts = wires[w2].split(":");
if (parts.length == 2 && parts[0] in node_map) {
var dst = node_map[parts[0]];
var link = {source:n,sourcePort:w1,target:dst,targetPort:parts[1]};
addLink(link);
new_links.push(link);
}
}
}
}

Ładowanie…
Anuluj
Zapisz