fix triple inner offset in roughing voids. fix stock bounds on cam toggle in preview

This commit is contained in:
Stewart Allen 2020-11-15 14:43:22 -05:00
commit 624f87d044
5 changed files with 29 additions and 15 deletions

View file

@ -55,11 +55,14 @@
layers: [ ],
view: view.newGroup(),
add: function(layer) {
const nuview = stack.view.newGroup();
stack.layers.push(nuview);
render(layer, nuview, name);
const lview = stack.view.newGroup();
stack.layers.push(lview);
render(layer, lview, name);
tallest = Math.max(tallest, stack.layers.length);
},
remove: function() {
view.remove(stack.view);
},
clear: function() {
view.remove(stack.view);
}
@ -67,6 +70,14 @@
return stack;
}
function remove(name) {
const stack = stacks[name];
if (stack) {
stack.remove();
delete stacks[name];
}
}
function getRange() {
return {min, max, tallest};
}
@ -258,6 +269,7 @@
KIRI.stacks = {
clear,
create,
remove,
getStack,
getRange,
setRange