mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-21 01:13:37 +08:00
Fix #873 New Selection untoggled selects selected cubes
This commit is contained in:
parent
6076d8856f
commit
9cc76e62c2
@ -838,7 +838,7 @@ BARS.defineActions(function() {
|
||||
],
|
||||
onConfirm(formData) {
|
||||
if (formData.new) {
|
||||
selected.length = 0
|
||||
selected.empty();
|
||||
}
|
||||
let selected_group = Group.selected;
|
||||
if (Group.selected) {
|
||||
@ -869,7 +869,7 @@ BARS.defineActions(function() {
|
||||
if (obj instanceof Cube == false || obj.color.toString() != formData.color) return;
|
||||
}
|
||||
if (Math.random() > rdm) return;
|
||||
selected.push(obj)
|
||||
selected.safePush(obj)
|
||||
})
|
||||
updateSelection()
|
||||
if (selected.length) {
|
||||
|
Loading…
Reference in New Issue
Block a user