make menu adaptive to skeptch mode

This commit is contained in:
Stewart Allen 2024-07-24 16:57:42 -04:00
commit fe6fbefa7e
4 changed files with 43 additions and 5 deletions

View file

@ -364,6 +364,8 @@ function space_init(data) {
const opt = { radians: 0, radius: surface.radius };
const mode = api.mode.get();
switch(mode) {
case modes.sketch:
api.mode.object();
case modes.object:
case modes.tool:
selection.toggle(shiftKey ? model : model.group, mode === modes.tool);