mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
fix hound
This commit is contained in:
parent
1b69c712f1
commit
953df90e66
1 changed files with 7 additions and 6 deletions
|
|
@ -107,13 +107,14 @@ TemplateLoader.prototype.replaceNode = function(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var inLinks = dstNode.getInLinks();
|
var inLinks = dstNode.getInLinks();
|
||||||
|
var link, inNode, inPort, outPort, outNode, success;
|
||||||
for (var l in inLinks) {
|
for (var l in inLinks) {
|
||||||
if (Object.prototype.hasOwnProperty.call(inLinks, l)) {
|
if (Object.prototype.hasOwnProperty.call(inLinks, l)) {
|
||||||
var link = inLinks[l];
|
link = inLinks[l];
|
||||||
var inPort = Number(link.inPort);
|
inPort = Number(link.inPort);
|
||||||
var outPort = Number(link.outPort);
|
outPort = Number(link.outPort);
|
||||||
var outNode = link.outNode;
|
outNode = link.outNode;
|
||||||
var success = replacementNode.linkInNode(outNode, inPort, outPort);
|
success = replacementNode.linkInNode(outNode, inPort, outPort);
|
||||||
if (success) {
|
if (success) {
|
||||||
$.log('Successfully connected ' + outNode + ' : ' +
|
$.log('Successfully connected ' + outNode + ' : ' +
|
||||||
outPort + ' -> ' + replacementNode + ' : ' + inPort);
|
outPort + ' -> ' + replacementNode + ' : ' + inPort);
|
||||||
|
|
@ -130,7 +131,7 @@ TemplateLoader.prototype.replaceNode = function(
|
||||||
link = outLinks[l];
|
link = outLinks[l];
|
||||||
inPort = Number(link.inPort);
|
inPort = Number(link.inPort);
|
||||||
outPort = Number(link.outPort);
|
outPort = Number(link.outPort);
|
||||||
var inNode = link.inNode;
|
inNode = link.inNode;
|
||||||
// first we must disconnect the port from the node being
|
// first we must disconnect the port from the node being
|
||||||
// replaced to this links inNode port
|
// replaced to this links inNode port
|
||||||
inNode.unlinkInPort(inPort);
|
inNode.unlinkInPort(inPort);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue