fix mode selection on sketch add
This commit is contained in:
parent
2ca2dc1c70
commit
66d9ed71b1
3 changed files with 2 additions and 3 deletions
|
|
@ -272,8 +272,6 @@ function space_init(data) {
|
||||||
return selection.boundsBox({toggle:true});
|
return selection.boundsBox({toggle:true});
|
||||||
case 'KeyH':
|
case 'KeyH':
|
||||||
return shiftKey ? selection.hide() : space.view.home();
|
return shiftKey ? selection.hide() : space.view.home();
|
||||||
case 'KeyS':
|
|
||||||
return shiftKey ? api.tool.toSketch() : undefined;
|
|
||||||
case 'KeyT':
|
case 'KeyT':
|
||||||
return shiftKey ? api.tool.triangulate() : space.view.top();
|
return shiftKey ? api.tool.triangulate() : space.view.top();
|
||||||
case 'KeyZ':
|
case 'KeyZ':
|
||||||
|
|
|
||||||
|
|
@ -680,6 +680,7 @@ let sketch = {
|
||||||
|
|
||||||
let add = {
|
let add = {
|
||||||
sketch(opt) {
|
sketch(opt) {
|
||||||
|
mode.sketch();
|
||||||
let nu = new mesh.sketch(opt);
|
let nu = new mesh.sketch(opt);
|
||||||
selection.set([ sketch.add(nu) ]);
|
selection.set([ sketch.add(nu) ]);
|
||||||
return nu;
|
return nu;
|
||||||
|
|
|
||||||
|
|
@ -496,7 +496,7 @@ function ui_build() {
|
||||||
div({ class: "menu-items" }, [
|
div({ class: "menu-items" }, [
|
||||||
menu_item('Flip Normals', tool.invert, ['bi-shift','I']),
|
menu_item('Flip Normals', tool.invert, ['bi-shift','I']),
|
||||||
menu_item('Triangulate', tool.triangulate, ['bi-shift','T']),
|
menu_item('Triangulate', tool.triangulate, ['bi-shift','T']),
|
||||||
menu_item('To Sketch', tool.toSketch, ['bi-shift','S']),
|
menu_item('To Sketch', tool.toSketch),
|
||||||
menu_item('Analyze', tool.analyze),
|
menu_item('Analyze', tool.analyze),
|
||||||
menu_item('Clean', tool.clean),
|
menu_item('Clean', tool.clean),
|
||||||
])
|
])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue