stop slicing on errors. alert when no cam processes selected

This commit is contained in:
Stewart Allen 2017-12-31 12:57:26 -05:00
commit 0f31315f4d
4 changed files with 19 additions and 7 deletions

View file

@ -547,13 +547,14 @@ var gs_kiri_widget = exports;
if (reply.send_end) widget.stats.load_time = widget.xfer.start - reply.send_end;
if (reply.slices) { widget.clearSlices(); widget.slices = [] };
if (reply.slice) widget.slices.push(KIRI.codec.decode(reply.slice, {mesh:widget.mesh}));
if (reply.done) {
if (reply.error) {
widget.cancel = true;
ondone(false, reply.error);
}
if (reply.done && !widget.cancel) {
ondone(true);
widget.modified = false;
}
if (reply.error) {
alert(reply.error);
}
});
} else {