- 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)

This commit is contained in:
Marius Stanciu
2019-08-16 16:54:47 +03:00
parent 5c4c59d1a2
commit eb385c1b28
2 changed files with 6 additions and 0 deletions

View File

@@ -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'