Preserve node properties on import

This commit is contained in:
Nick O'Leary 2016-04-21 21:51:26 +01:00
parent 819e48b03a
commit 1b06afb81c
1 changed files with 1 additions and 3 deletions

View File

@ -847,9 +847,7 @@ RED.nodes = (function() {
node.outputs = n.outputs||node._def.outputs;
for (var d2 in node._def.defaults) {
if (node._def.defaults.hasOwnProperty(d2)) {
if (node._def.defaults[d2].type) {
node[d2] = n[d2];
}
node[d2] = n[d2];
}
}
}