fix log unpin after analyze/repair and shift+d duplicate

This commit is contained in:
Stewart Allen 2022-01-13 23:16:30 -05:00
commit 5667309c66
2 changed files with 3 additions and 3 deletions

View file

@ -163,7 +163,7 @@ function space_init(data) {
case 'KeyX': case 'KeyX':
return api.file.export(); return api.file.export();
case 'KeyD': case 'KeyD':
if (shiftKey) return selection.duplicate(); if (shiftKey) return api.tool.duplicate();
break; break;
case 'KeyC': case 'KeyC':
return selection.centerXY().focus(); return selection.centerXY().focus();

View file

@ -366,7 +366,7 @@ let tool = {
models = fallback(models); models = fallback(models);
api.log.emit('repairing mesh(es)...').pin(); api.log.emit('repairing mesh(es)...').pin();
tool.heal(models, { merge: true }).then(() => { tool.heal(models, { merge: true }).then(() => {
api.log.emit('repair commplete').pin(); api.log.emit('repair commplete').unpin();
api.selection.update(); api.selection.update();
}); });
}, },
@ -374,7 +374,7 @@ let tool = {
clean(models = selection.models()) { clean(models = selection.models()) {
models = fallback(models); models = fallback(models);
tool.heal(models, { merge: false }).then(() => { tool.heal(models, { merge: false }).then(() => {
api.log.emit('cleaning complete').pin(); api.log.emit('cleaning complete').unpin();
api.selection.update(); api.selection.update();
}); });
} }