Skip to content

Commit

Permalink
Select all now selects root bone if applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
JannisX11 committed Aug 16, 2020
1 parent cc111a8 commit ed8b62c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions js/blockbench.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit ed8b62c

Please sign in to comment.