remove wireframe toggle

This commit is contained in:
Stewart Allen 2020-11-08 16:51:15 -05:00
commit 2cfd612b86
3 changed files with 0 additions and 12 deletions

View file

@ -401,9 +401,6 @@
case cca('a'): // auto arrange items on platform case cca('a'): // auto arrange items on platform
platform.layout(); platform.layout();
break; break;
case cca('w'): // toggle wireframe on widgets
API.view.wireframe(API.color.wireframe, API.color.wireframe_opacity);
break;
default: default:
API.event.emit('keypress', evt); API.event.emit('keypress', evt);
handled = false; handled = false;

View file

@ -569,11 +569,6 @@
SPACE.update(); SPACE.update();
} }
function toggleWireframe(color, opacity) {
forAllWidgets(function(w) { w.toggleWireframe(color, opacity) });
SPACE.update();
}
function updateSliderMax(set) { function updateSliderMax(set) {
let max = STACKS.getRange().tallest - 1; let max = STACKS.getRange().tallest - 1;
API.var.layer_max = UI.sliderMax.innerText = max; API.var.layer_max = UI.sliderMax.innerText = max;

View file

@ -634,10 +634,6 @@
return Date.now() - mark; return Date.now() - mark;
}; };
PRO.toggleWireframe = function (color, opacity) {
this.setWireframe(!this.wire, color, opacity);
};
PRO.setWireframe = function(set, color, opacity) { PRO.setWireframe = function(set, color, opacity) {
let mesh = this.mesh, let mesh = this.mesh,
widget = this; widget = this;