From 055345346cf5953117fd1fbcc3f093981bb6b56c Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sat, 20 Jul 2024 18:47:47 -0400 Subject: [PATCH] add shift+v to make all meshes visible --- src/main/mesh.js | 2 +- src/mesh/api.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/mesh.js b/src/main/mesh.js index b882175a..cd0f08f3 100644 --- a/src/main/mesh.js +++ b/src/main/mesh.js @@ -323,7 +323,7 @@ function space_init(data) { case 'KeyE': return api.tool.clean(); case 'KeyV': - return selection.focus(); + return shiftKey ? selection.show() : selection.focus(); case 'KeyN': return shiftKey ? estop(evt, api.tool.rename()) : api.normals(); case 'KeyW': diff --git a/src/mesh/api.js b/src/mesh/api.js index f33736e3..fb1e7f73 100644 --- a/src/mesh/api.js +++ b/src/mesh/api.js @@ -227,6 +227,12 @@ const selection = { bounds() { return util.bounds(selected.map(s => s.object)); + }, + + show() { + for (let m of selection.models()) { + m.visible(true); + } } };