fix outliner for subflow addition

This commit is contained in:
Hiroyasu Nishiyama 2020-05-16 11:25:55 +09:00
parent fbd911ed27
commit bc3683d8f6
1 changed files with 4 additions and 0 deletions

View File

@ -346,6 +346,10 @@ RED.sidebar.info.outliner = (function() {
if (!parent) {
globalConfigNodes.treeList.addChild(existingObject);
} else {
if (empties[parent]) {
empties[parent].treeList.remove();
delete empties[parent];
}
objects[parent].treeList.addChild(existingObject)
}
}