fixes #197 invalidate tabs on scale and traces on scale or rotate
This commit is contained in:
parent
d55b7ba9e8
commit
6d20801efe
1 changed files with 19 additions and 0 deletions
|
|
@ -146,6 +146,25 @@ CAM.init = function(kiri, api) {
|
|||
"selection.rotate"
|
||||
], updateStock);
|
||||
|
||||
// invalidate trace ops on scale or rotate
|
||||
api.event.on([
|
||||
"selection.scale",
|
||||
"selection.rotate"
|
||||
], () => {
|
||||
for (let op of current.process.ops) {
|
||||
if (op.type === 'trace') {
|
||||
op.areas = {};
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// invalidate tabs when scaleds
|
||||
api.event.on([
|
||||
"selection.scale",
|
||||
], () => {
|
||||
func.tabClear();
|
||||
});
|
||||
|
||||
api.event.on([
|
||||
// update tab color/opacity on dark/light change
|
||||
"boolean.update"
|
||||
|
|
|
|||
Loading…
Reference in a new issue