prevent op re-render when an op is popped

This commit is contained in:
Stewart Allen 2022-11-06 10:42:57 -05:00
commit 7571604cce
2 changed files with 5 additions and 2 deletions

View file

@ -190,7 +190,9 @@ CAM.init = function(kiri, api) {
api.platform.update_bounds();
updateAxisMode();
updateStock();
if (!poppedRec) {
func.opRender();
}
});
api.event.on("settings.load", (settings) => {
@ -469,6 +471,7 @@ CAM.init = function(kiri, api) {
if (pos >= 0) {
el.removeChild(poprec.div);
}
poppedRec = undefined;
popped = false;
};
function onEnter(ev) {

View file

@ -629,7 +629,7 @@ class OpOutline extends CamOp {
// project empty up and render
for (let slice of slices) {
if (true) slice.output()
if (false) slice.output()
.setLayer("slice", {line: 0xaaaa00}, false)
.addPolys(slice.topPolys())
slice.output()