From 7b4e09e3105ea3abf2592f59d6ee8cf2648a99dc Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 27 Oct 2011 11:00:24 +0000 Subject: [PATCH] + get first solid in result git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5073 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d --- src/Mod/PartDesign/App/FeaturePad.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/App/FeaturePad.cpp b/src/Mod/PartDesign/App/FeaturePad.cpp index d0c819cbf0..32fe24d613 100644 --- a/src/Mod/PartDesign/App/FeaturePad.cpp +++ b/src/Mod/PartDesign/App/FeaturePad.cpp @@ -162,7 +162,7 @@ App::DocumentObjectExecReturn *Pad::execute(void) return new App::DocumentObjectExecReturn("Support is not a solid"); } else { - TopoDS_Shape result = TopoDS::Solid(PrismMaker.Shape()); + TopoDS_Shape result = this->getSolid(PrismMaker.Shape()); // set the additive shape property for later usage in e.g. pattern this->AddShape.setValue(result); this->Shape.setValue(result);