From d59ae608d609f5da8be8bbda6822e4875ccd1c58 Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Wed, 6 Oct 2021 19:56:03 -0500 Subject: [PATCH] Fix incorrect arguments list This commit fixes the error reported in the forum at https://forum.freecadweb.org/viewtopic.php?f=15&t=33121&start=50#p537787. This error was introduced when another user replaced the `extractFaceOffset()` method from the PathSurfaceSupport.py module with an improved `getOffsetArea()` function in the PathUtils.py module. The two instances of the improved `getOffsetArea()` calls here in this fix did not get corrected when that improvement was originally made. --- src/Mod/Path/PathScripts/PathWaterline.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathWaterline.py b/src/Mod/Path/PathScripts/PathWaterline.py index 9ccc95bd68..b9792c0523 100644 --- a/src/Mod/Path/PathScripts/PathWaterline.py +++ b/src/Mod/Path/PathScripts/PathWaterline.py @@ -1290,8 +1290,7 @@ class ObjectWaterline(PathOp.ObjectOp): self.showDebugObject(activeArea, 'ActiveArea_{}'.format(caCnt)) ofstArea = PathUtils.getOffsetArea(activeArea, ofst, - self.wpc, - makeComp=False) + self.wpc) if not ofstArea: data = FreeCAD.Units.Quantity(csHght, FreeCAD.Units.Length).UserString PathLog.debug('No offset area returned for cut area depth at {}.'.format(data)) @@ -1467,8 +1466,7 @@ class ObjectWaterline(PathOp.ObjectOp): while cont: ofstArea = PathUtils.getOffsetArea(shape, ofst, - self.wpc, - makeComp=True) + self.wpc) if not ofstArea: break for F in ofstArea.Faces: