From ed8b62ce2c17bcbbf131e45163ef985a611fbd92 Mon Sep 17 00:00:00 2001 From: JannisX11 Date: Sun, 16 Aug 2020 13:39:43 +0200 Subject: [PATCH] Select all now selects root bone if applicable --- js/blockbench.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/js/blockbench.js b/js/blockbench.js index a6adfbd6d..6263acef4 100644 --- a/js/blockbench.js +++ b/js/blockbench.js @@ -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() }