From eb385c1b285b5affa40afc591071ec04597efceb Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Fri, 16 Aug 2019 16:54:47 +0300 Subject: [PATCH] - made sure that if multi depth is choosed when creating GCode then if the multidepth is more than the depth of cut only one cut is made (to the depth of cut) --- README.md | 2 ++ camlib.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 7e47c270..abe1c999 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ CAD program, and create G-Code for Isolation routing. - fixed bug selection in Excellon editor with a selection window in case that the number of selected items is even - updated the default values to more convenient ones - remade the enable/disable plots functions to work only where it needs to (no sense in disabling a plot already disabled) +- made sure that if multi depth is choosed when creating GCode then if the multidepth is more than the depth of cut only one cut is made (to the depth of cut) + 15.08.2019 diff --git a/camlib.py b/camlib.py index 8640cbe0..1732e19e 100644 --- a/camlib.py +++ b/camlib.py @@ -5662,6 +5662,10 @@ class CNCjob(Geometry): "There will be no cut, skipping %s file") % self.options['name']) 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 self.z_move is None: self.app.inform.emit(_("[ERROR_NOTCL] Travel Z parameter is None or zero.")) return 'fail'