From 4421545f254351fa85801b1c683318fdf44ba7db Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Tue, 25 Oct 2022 00:33:31 -0400 Subject: [PATCH] change meta-click to focus face normal or not based on shift key --- src/main/mesh.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/mesh.js b/src/main/mesh.js index 67eee197..d5bb5baf 100644 --- a/src/main/mesh.js +++ b/src/main/mesh.js @@ -413,7 +413,7 @@ function space_init(data) { const { x, y, z } = int.point; const q = new Quaternion().setFromRotationMatrix(group.object.matrix); // rotate normal using group's matrix - const normal = int.face.normal.applyQuaternion(q); + const normal = shiftKey ? int.face.normal.applyQuaternion(q) : undefined; // y,z swap due to world rotation for orbit controls api.focus({center: { x, y:-z, z:y }, normal}); } else if (ctrlKey) {