clear surface selection on view mode change

This commit is contained in:
Stewart Allen 2022-04-16 10:42:58 -04:00
commit 9068276ad6
4 changed files with 8 additions and 6 deletions

View file

@ -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)

View file

@ -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) => {

View file

@ -602,7 +602,7 @@ const api = exports({
},
version() {
window.location = "/choose";
window.location = "/choose?back";
},
clear() {

View file

@ -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();
}
},