fix triple inner offset in roughing voids. fix stock bounds on cam toggle in preview
This commit is contained in:
parent
76d2ad5530
commit
624f87d044
5 changed files with 29 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue