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();
|
api.platform.update_bounds();
|
||||||
updateAxisMode();
|
updateAxisMode();
|
||||||
updateStock();
|
updateStock();
|
||||||
func.opRender();
|
if (!poppedRec) {
|
||||||
|
func.opRender();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
api.event.on("settings.load", (settings) => {
|
api.event.on("settings.load", (settings) => {
|
||||||
|
|
@ -469,6 +471,7 @@ CAM.init = function(kiri, api) {
|
||||||
if (pos >= 0) {
|
if (pos >= 0) {
|
||||||
el.removeChild(poprec.div);
|
el.removeChild(poprec.div);
|
||||||
}
|
}
|
||||||
|
poppedRec = undefined;
|
||||||
popped = false;
|
popped = false;
|
||||||
};
|
};
|
||||||
function onEnter(ev) {
|
function onEnter(ev) {
|
||||||
|
|
|
||||||
|
|
@ -629,7 +629,7 @@ class OpOutline extends CamOp {
|
||||||
|
|
||||||
// project empty up and render
|
// project empty up and render
|
||||||
for (let slice of slices) {
|
for (let slice of slices) {
|
||||||
if (true) slice.output()
|
if (false) slice.output()
|
||||||
.setLayer("slice", {line: 0xaaaa00}, false)
|
.setLayer("slice", {line: 0xaaaa00}, false)
|
||||||
.addPolys(slice.topPolys())
|
.addPolys(slice.topPolys())
|
||||||
slice.output()
|
slice.output()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue