From 73ce00d39bd52b1ba975c9225ede11b0ad8cefc7 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Fri, 31 Aug 2018 19:41:33 -0700 Subject: [PATCH] Added multi base model support to ProfileEdges op. --- src/Mod/Path/PathScripts/PathProfileEdges.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathProfileEdges.py b/src/Mod/Path/PathScripts/PathProfileEdges.py index dd87cd6904..9a9f35202d 100644 --- a/src/Mod/Path/PathScripts/PathProfileEdges.py +++ b/src/Mod/Path/PathScripts/PathProfileEdges.py @@ -96,8 +96,9 @@ 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 - env = PathUtils.getEnvelope(self.baseobject.Shape, subshape=f, depthparams=self.depthparams) - shapes.append((env, False)) + for model in self.model: + env = PathUtils.getEnvelope(model.Shape, subshape=f, depthparams=self.depthparams) + shapes.append((env, False)) return shapes def SetupProperties():