start tools module

This commit is contained in:
Stewart Allen 2021-10-09 10:34:20 -04:00
commit 3cdb739566
6 changed files with 12 additions and 3 deletions

View file

@ -2604,6 +2604,7 @@
$('mode-cam').onclick = () => { API.mode.set('CAM') };
$('mode-laser').onclick = () => { API.mode.set('LASER') };
$('unrotate').onclick = () => { API.widgets.for(w => w.unrotate()) };
$('lay-flat').onclick = () => { API.event.emit("tool.mesh.lay-flat") };
// rotation buttons
let d = (Math.PI / 180) * 5;
$('rot_x_lt').onclick = () => { API.selection.rotate(-d,0,0) };