prevent op re-render when an op is popped
This commit is contained in:
parent
0b410371d0
commit
7571604cce
2 changed files with 5 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue