prevent dragging parts beyond boundaries

This commit is contained in:
Stewart Allen 2020-03-16 17:26:12 -04:00
commit f581e2f89f
4 changed files with 18 additions and 8 deletions

View file

@ -707,8 +707,6 @@ self.kiri.license = exports.LICENSE;
setViewMode(VIEWS.SLICE);
var selectSave = selectedMeshes.slice();
clearPrint();
saveSettings();
platform.deselect();
@ -733,9 +731,6 @@ self.kiri.license = exports.LICENSE;
startTime,
lastMsg;
// skip non-selected widgets in CAM mode when any widget is selected
if (MODE === MODES.CAM && selectSave.length > 0 && selectSave.indexOf(widget.mesh) < 0) return --countdown;
widget.stats.progress = 0;
widget.setColor(widget_slicing_color);
widget.slice(settings, function(sliced, error) {