allow FDM mixing of automatic and manual / detected supports. add outline toggling to automatic supports

This commit is contained in:
Stewart Allen 2022-10-13 11:16:44 -04:00
commit fc6973ecf9
5 changed files with 68 additions and 69 deletions

View file

@ -130,23 +130,6 @@ FDM.init = function(kiri, api) {
}
}
api.event.on("boolean.click", func.updateSupportButtons = () => {
if (!isFdmMode) {
return;
}
for (let btn of [
ui.ssaGen,
ui.ssmAdd,
ui.ssmDun,
ui.ssmClr
]) {
btn.disabled = ui.sliceSupportEnable.checked;
}
if (ui.sliceSupportEnable.checked) {
func.sclear();
}
});
api.event.on("function.animate", (mode) => {
if (!isFdmMode) {
return;
@ -205,7 +188,6 @@ FDM.init = function(kiri, api) {
});
api.event.on("settings.saved", (settings) => {
updateRanges(settings.process.ranges);
func.updateSupportButtons();
// let ranges = settings.process.ranges;
// ui.rangeGroup.style.display = isFdmMode && ranges && ranges.length ? 'flex' : 'none';
});