瀏覽代碼

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 年之前
父節點
當前提交
49d5c6cac4
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 8 行新增6 行删除
  1. +8
    -6
      gui/red/nodes.js

+ 8
- 6
gui/red/nodes.js 查看文件

@@ -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);
}
}
}
}

Loading…
取消
儲存