From 5667309c66b8fdd04077ead8c2d190049da08a9b Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Thu, 13 Jan 2022 23:16:30 -0500 Subject: [PATCH] fix log unpin after analyze/repair and shift+d duplicate --- src/main/mesh.js | 2 +- src/mesh/api.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/mesh.js b/src/main/mesh.js index c8f50b02..be1f2a72 100644 --- a/src/main/mesh.js +++ b/src/main/mesh.js @@ -163,7 +163,7 @@ function space_init(data) { case 'KeyX': return api.file.export(); case 'KeyD': - if (shiftKey) return selection.duplicate(); + if (shiftKey) return api.tool.duplicate(); break; case 'KeyC': return selection.centerXY().focus(); diff --git a/src/mesh/api.js b/src/mesh/api.js index 23b4f22b..19e405a2 100644 --- a/src/mesh/api.js +++ b/src/mesh/api.js @@ -366,7 +366,7 @@ let tool = { models = fallback(models); api.log.emit('repairing mesh(es)...').pin(); tool.heal(models, { merge: true }).then(() => { - api.log.emit('repair commplete').pin(); + api.log.emit('repair commplete').unpin(); api.selection.update(); }); }, @@ -374,7 +374,7 @@ let tool = { clean(models = selection.models()) { models = fallback(models); tool.heal(models, { merge: false }).then(() => { - api.log.emit('cleaning complete').pin(); + api.log.emit('cleaning complete').unpin(); api.selection.update(); }); }