fix output origin persistence bug

This commit is contained in:
Stewart Allen 2018-02-14 20:47:35 -05:00
commit 2ed13fdeeb
3 changed files with 6 additions and 3 deletions

View file

@ -1938,14 +1938,17 @@ self.kiri.license = exports.LICENSE;
function loadNamedSetting(e, named) { function loadNamedSetting(e, named) {
var name = e ? e.target.getAttribute("load") : named || settings.cproc[getMode()], var name = e ? e.target.getAttribute("load") : named || settings.cproc[getMode()],
load = settings.sproc[getMode()][name]; load = settings.sproc[getMode()][name],
mode = getMode();
if (!load) return; if (!load) return;
for (var k in load) { for (var k in load) {
if (!load.hasOwnProperty(k)) continue; if (!load.hasOwnProperty(k)) continue;
// prevent stored process from overwriting device defaults
if (k === "outputOriginCenter" && mode == "FDM") continue;
settings.process[k] = load[k]; settings.process[k] = load[k];
} }
settings.process.processName = name; settings.process.processName = name;
settings.cproc[getMode()] = name; settings.cproc[mode] = name;
// associate named process with the current device // associate named process with the current device
settings.devproc[currentDeviceName()] = name; settings.devproc[currentDeviceName()] = name;

View file

@ -1,7 +1,7 @@
var exports = { var exports = {
COPYRIGHT:"Copyright (C) 2014-2017 Stewart Allen <stewart@neuron.com> - All Rights Reserved", COPYRIGHT:"Copyright (C) 2014-2017 Stewart Allen <stewart@neuron.com> - All Rights Reserved",
LICENSE:"Unauthorized copying, modification and re-distribution are strictly prohibited without prior written consent.", LICENSE:"Unauthorized copying, modification and re-distribution are strictly prohibited without prior written consent.",
VERSION:"1.0.98" VERSION:"1.0.99"
}; };
if (!module) var module = {}; if (!module) var module = {};
module.exports = exports; module.exports = exports;