discrete widget state dirtying in belt / slice. fix op:trace unselect on modified

This commit is contained in:
Stewart Allen 2021-01-30 20:50:14 -05:00
commit e1ed1b93b6
3 changed files with 8 additions and 6 deletions

View file

@ -167,10 +167,14 @@ KIRI.work = {
id: widget.id,
settings: settings
}, function(reply) {
callback(reply);
if (reply.done || reply.error) {
delete slicing[widget.id];
// in belt mode, slicing modifies a widget and requires re-sync
if (settings.device.bedBelt) {
widget.modified = true;
}
}
callback(reply);
});
},

View file

@ -869,7 +869,6 @@
setOpacity(color.slicing_opacity);
STACKS.clear();
KIRI.client.clear();
KIRI.client.sync();
KIRI.client.rotate(settings);