Skip to content

Commit

Permalink
Merge pull request #4433 from J-Dunn/master
Browse files Browse the repository at this point in the history
[PATH] fix conecutter core dumps #4561
  • Loading branch information
sliptonic committed Feb 15, 2021
2 parents 1d0466d + d55a72e commit ab186aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Mod/Path/PathScripts/PathSurfaceSupport.py
Expand Up @@ -2555,6 +2555,7 @@ def _oclBallCutter(self):
if (self.diameter == -1.0 or self.cutEdgeHeight == -1.0):
return
self.tiltCutter = True
if self.cutEdgeHeight==0 : self.cutEdgeHeight = self.diameter/2
self.oclTool = self.ocl.BallCutter(
self.diameter,
self.cutEdgeHeight + self.lengthOffset
Expand Down Expand Up @@ -2582,8 +2583,8 @@ def _oclConeCutter(self):
return
self.oclTool = self.ocl.ConeCutter(
self.diameter,
self.cutEdgeAngle,
self.cutEdgeHeight + self.lengthOffset
self.cutEdgeAngle/2,
self.lengthOffset
)

def _setToolMethod(self):
Expand Down

0 comments on commit ab186aa

Please sign in to comment.