diff --git a/src/Mod/Path/PathScripts/PathProfileContour.py b/src/Mod/Path/PathScripts/PathProfileContour.py index e3c6ffcddf..24224c6a3b 100644 --- a/src/Mod/Path/PathScripts/PathProfileContour.py +++ b/src/Mod/Path/PathScripts/PathProfileContour.py @@ -98,7 +98,7 @@ class ObjectContour(PathProfileBase.ObjectProfile): return [(f.extrude(FreeCAD.Vector(0, 0, thickness)), False)] if not isPanel: - return [(PathUtils.getEnvelope(partshape=model.Shape, subshape=None, depthparams=self.depthparams), False) for model in self.model if hasattr(model, 'Shape')] + return [(PathUtils.getEnvelope(partshape=base.Shape, subshape=None, depthparams=self.depthparams), False) for base in self.base if hasattr(base, 'Shape')] def areaOpAreaParams(self, obj, isHole): params = self.baseObject().areaOpAreaParams(obj, isHole) diff --git a/src/Mod/Path/PathScripts/PathProfileEdges.py b/src/Mod/Path/PathScripts/PathProfileEdges.py index 9a9f35202d..5648cb83a1 100644 --- a/src/Mod/Path/PathScripts/PathProfileEdges.py +++ b/src/Mod/Path/PathScripts/PathProfileEdges.py @@ -96,8 +96,8 @@ class ObjectProfile(PathProfileBase.ObjectProfile): zShift = b[0].Shape.BoundBox.ZMin - f.BoundBox.ZMin newPlace = FreeCAD.Placement(FreeCAD.Vector(0, 0, zShift), f.Placement.Rotation) f.Placement = newPlace - for model in self.model: - env = PathUtils.getEnvelope(model.Shape, subshape=f, depthparams=self.depthparams) + for base in self.model: + env = PathUtils.getEnvelope(base.Shape, subshape=f, depthparams=self.depthparams) shapes.append((env, False)) return shapes