diff --git a/README.md b/README.md index f6d91ca3..9366d261 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ CAD program, and create G-Code for Isolation routing. - fixed open handlers - fixed issue in NCC Tool where the tool table context menu could be installed multiple times - added new ability to create simple isolation's in the NCC Tool +- fixed an issue when multi depth step is larger than the depth of cut 27.08.2019 diff --git a/camlib.py b/camlib.py index fecba319..920ef251 100644 --- a/camlib.py +++ b/camlib.py @@ -5765,8 +5765,8 @@ class CNCjob(Geometry): return 'fail' # made sure that depth_per_cut is no more then the z_cut - if self.z_cut < self.z_depthpercut: - self.z_depthpercut = self.z_cut + if abs(self.z_cut) < self.z_depthpercut: + self.z_depthpercut = abs(self.z_cut) if self.z_move is None: self.app.inform.emit(_("[ERROR_NOTCL] Travel Z parameter is None or zero.")) @@ -6073,6 +6073,10 @@ class CNCjob(Geometry): "This is dangerous, skipping %s file") % self.options['name']) return 'fail' + # made sure that depth_per_cut is no more then the z_cut + if abs(self.z_cut) < self.z_depthpercut: + self.z_depthpercut = abs(self.z_cut) + # ## Index first and last points in paths # What points to index. def get_pts(o):