check for and correct invalid outline settings. default stock + offset. add 'g' animate shortcut
This commit is contained in:
parent
2158166a8e
commit
a5e98bd892
4 changed files with 20 additions and 3 deletions
|
|
@ -54,6 +54,8 @@
|
|||
func.tabClear();
|
||||
func.traceDone();
|
||||
UI.func.animate.style.display = 'none';
|
||||
} else {
|
||||
checkOutlineSettings(api.conf.get());
|
||||
}
|
||||
// do not persist traces across page reloads
|
||||
func.traceClear();
|
||||
|
|
@ -67,6 +69,16 @@
|
|||
func.traceDone();
|
||||
});
|
||||
|
||||
function checkOutlineSettings(settings) {
|
||||
let ui = api.ui, proc = settings.process;
|
||||
// fix invalid in/out enabled condition
|
||||
if (ui.camOutlineIn.checked && ui.camOutlineOut.checked) {
|
||||
proc.camOutlineIn = proc.camOutlineOut = false;
|
||||
ui.camOutlineIn.checked = ui.camOutlineOut.checked = false;
|
||||
api.uc.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
api.event.on("settings.saved", (settings) => {
|
||||
current = settings;
|
||||
const proc = settings.process;
|
||||
|
|
@ -78,6 +90,7 @@
|
|||
if (wannot.tab && wannot.tab.length) hasTabs = true;
|
||||
if (wannot.trace && wannot.trace.length) hasTraces = true;
|
||||
});
|
||||
checkOutlineSettings(settings);
|
||||
// show/hide dots in enabled process pop buttons
|
||||
api.ui.camRough.marker.style.display = proc.camRoughOn ? 'flex' : 'none';
|
||||
api.ui.camDrill.marker.style.display =
|
||||
|
|
|
|||
Loading…
Reference in a new issue