From 9068276ad6a20a0dd5376eb355555e6b78096596 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sat, 16 Apr 2022 10:42:58 -0400 Subject: [PATCH] clear surface selection on view mode change --- release.md | 2 ++ src/kiri-mode/cam/client.js | 7 ++----- src/mesh/api.js | 2 +- src/moto/space.js | 3 +++ 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/release.md b/release.md index 7a05dbb1..3d8a9aaf 100644 --- a/release.md +++ b/release.md @@ -21,6 +21,8 @@ Full docs @ https://docs.grid.space/projects/kiri-moto * `C` significant speed-up for large surface selections * `C` multi-body identification and isolation * `-` parameterize svg and image import +* `-` control wireframe transparency +* `-` show camera focal point # Release 3.3 (2022-04-01) diff --git a/src/kiri-mode/cam/client.js b/src/kiri-mode/cam/client.js index 3e3c9090..754d3c65 100644 --- a/src/kiri-mode/cam/client.js +++ b/src/kiri-mode/cam/client.js @@ -73,8 +73,7 @@ CAM.init = function(kiri, api) { updateStock(undefined, 'internal'); UI.func.animate.style.display = isCamMode ? '' : 'none'; if (!isCamMode) { - func.tabClear(); - func.traceDone(); + func.clearPops(); UI.label.slice.innerText = LANG.slice; UI.label.preview.innerText = LANG.preview; UI.label.export.innerText = LANG.export; @@ -90,9 +89,7 @@ CAM.init = function(kiri, api) { isArrange = (mode === VIEWS.ARRANGE); isAnimate = false; CAM.animate_clear(api); - func.tabDone(); - func.traceDone(); - func.opRender(); + func.clearPops(); }); api.event.on("settings.saved", (settings) => { diff --git a/src/mesh/api.js b/src/mesh/api.js index 7da4aa91..d5f6cfd2 100644 --- a/src/mesh/api.js +++ b/src/mesh/api.js @@ -602,7 +602,7 @@ const api = exports({ }, version() { - window.location = "/choose"; + window.location = "/choose?back"; }, clear() { diff --git a/src/moto/space.js b/src/moto/space.js index ea77c51a..8b4facda 100644 --- a/src/moto/space.js +++ b/src/moto/space.js @@ -1063,6 +1063,9 @@ gapp.register("moto.space", [], (root, exports) => { fog.near = dist; fog.far = dist * fog.mult; } + // todo: option to clip for close views + // camera.near = dist / 2; + // camera.updateProjectionMatrix(); } },