fix pivot delete disconnect walk

This commit is contained in:
TreetopFlyer 2021-05-24 11:51:07 -04:00
parent 0c5a1142d3
commit 1424c18cc4

View File

@ -304,13 +304,13 @@ var Pivot =
}
}
// disconnect terminal branches
N.Walk(()=>{}, inRoot, "Hierarchy", inNode=>{
N.Disconnect(inNode, null, "Leaf");
// disconnect leaves from terminal branches
N.Walk(()=>{}, inRoot, "Hierarchy", true, terminal=>{
N.Disconnect(terminal, null, "Leaf");
});
// disconnect from app
N.Disconnect(null, inRoot, "Pivot")
N.Disconnect(null, inRoot, "Pivot");
},
Modify(inNode)
{