Select all now selects root bone if applicable

This commit is contained in:
JannisX11 2020-08-16 13:39:43 +02:00
parent cc111a83c9
commit ed8b62ce2c

View File

@ -207,10 +207,14 @@ function selectAll() {
selectAllKeyframes()
} else if (Modes.edit || Modes.paint) {
if (selected.length < elements.length) {
elements.forEach(obj => {
obj.selectLow()
})
TickUpdates.selection = true;
if (Outliner.root.length == 1) {
Outliner.root[0].select();
} else {
elements.forEach(obj => {
obj.selectLow()
})
TickUpdates.selection = true;
}
} else {
unselectAll()
}