menu order, optimize bounds/wire show/hide

This commit is contained in:
Stewart Allen 2022-01-12 01:09:34 -05:00
commit 91995b5762
4 changed files with 13 additions and 2 deletions

View file

@ -150,9 +150,13 @@ mesh.object = class MeshObject {
}
showBounds(bool) {
let was = this._showBounds;
if (bool && bool.toggle) {
bool = !this._showBounds;
}
if (was === bool) {
return;
}
this._showBounds = bool;
this.updateBoundsBox();
}