add wireframe/wireedges to menu
This commit is contained in:
parent
5650f25f3d
commit
420475ecfc
3 changed files with 11 additions and 9 deletions
|
|
@ -8,7 +8,6 @@ import '../add/three.js';
|
|||
import '../mesh/build.js';
|
||||
|
||||
import { api } from '../mesh/api.js';
|
||||
import { base } from '../geo/base.js';
|
||||
import { space } from '../moto/space.js';
|
||||
import { broker } from '../moto/broker.js';
|
||||
import { $, $d, h, estop } from '../moto/webui.js';
|
||||
|
|
@ -270,13 +269,7 @@ function space_init(data) {
|
|||
case 'KeyV':
|
||||
return shiftKey ? selection.show() : selection.focus();
|
||||
case 'KeyW':
|
||||
return shiftKey ?
|
||||
api.wireframe() :
|
||||
api.wireframe({
|
||||
toggle: true
|
||||
}, {
|
||||
edges: base.util.toDegrees(api.prefs.map.surface.radians)
|
||||
});
|
||||
return shiftKey ? api.wireframe() : api.wireedges();
|
||||
case 'KeyX':
|
||||
return api.file.export();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue