Skip to content

Commit

Permalink
Remove unneeded code on object delete in outliner
Browse files Browse the repository at this point in the history
  • Loading branch information
knolleary committed Jun 2, 2020
1 parent dec8258 commit 6d737b9
Showing 1 changed file with 9 additions and 9 deletions.
Expand Up @@ -391,15 +391,15 @@ RED.sidebar.info.outliner = (function() {
if (parent.children.length === 0) {
parent.treeList.addChild(getEmptyItem(parent.id));
}
if (existingObject.children && (existingObject.children.length > 0)) {
existingObject.children.forEach(function (nc) {
if (!nc.empty) {
var childObject = objects[nc.id];
nc.parent = parent;
objects[parent.id].treeList.addChild(childObject);
}
});
}
// if (existingObject.children && (existingObject.children.length > 0)) {
// existingObject.children.forEach(function (nc) {
// if (!nc.empty) {
// var childObject = objects[nc.id];
// nc.parent = parent;
// objects[parent.id].treeList.addChild(childObject);
// }
// });
// }
}
function getGutter(n) {
var span = $("<span>",{class:"red-ui-info-outline-gutter"});
Expand Down

0 comments on commit 6d737b9

Please sign in to comment.