change meta-click to focus face normal or not based on shift key
This commit is contained in:
parent
d61600fbee
commit
4421545f25
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue