fix restore from .km preserving widget annotations. fix trace ordering for tops that split down. fix support z span

This commit is contained in:
Stewart Allen 2021-02-18 22:47:52 -05:00
commit 125f9cb16b
4 changed files with 72 additions and 30 deletions

View file

@ -2271,10 +2271,11 @@
}
}
if (isSettings) {
clearWorkspace();
settings = CONF.normalize(data.settings);
SDB.setItem('ws-settings', JSON.stringify(settings));
if (LOCAL) console.log('settings',Object.clone(settings));
restoreSettings();
if (LOCAL) console.log('settings',Object.clone(settings));
if (isWork) {
API.platform.clear();
KIRI.codec.decode(data.work).forEach(widget => {
@ -2416,7 +2417,6 @@
function restoreSettings(save) {
let newset = ls2o('ws-settings') || settings;
settings = CONF.normalize(newset);
// override camera from settings
if (settings.controller.view) {