add selection operators
This commit is contained in:
parent
7278705096
commit
c279726c77
4 changed files with 46 additions and 7 deletions
|
|
@ -88,6 +88,15 @@ const selection = {
|
|||
util.defer(selection.update);
|
||||
},
|
||||
|
||||
// remove all
|
||||
delete() {
|
||||
for (let s of selection.list()) {
|
||||
selection.remove(s);
|
||||
s.showBounds(false);
|
||||
s.remove();
|
||||
}
|
||||
},
|
||||
|
||||
// @param group {MeshObject}
|
||||
toggle(object) {
|
||||
if (selected.contains(object)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue