make wireframe a global toggle

This commit is contained in:
Stewart Allen 2022-01-06 09:38:04 -05:00
commit f7d31b4ebb
4 changed files with 38 additions and 19 deletions

View file

@ -157,13 +157,6 @@ let selection = {
return selection;
},
wireframe() {
for (let m of selection.models()) {
m.wireframe(...arguments);
}
return selection;
},
boundsBox() {
for (let m of selection.groups()) {
m.showBounds(...arguments);
@ -240,6 +233,12 @@ let api = mesh.api = {
));
},
wireframe() {
for (let m of api.model.list()) {
m.wireframe(...arguments);
}
},
selection,
group,