From 1f3d2df4d51462d76d1eca322c3765db55420e67 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Mon, 26 Oct 2015 19:34:02 +0300 Subject: [PATCH] PartDesign/Body: add ability to store facebinders inside a body --- src/Mod/PartDesign/App/Body.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/App/Body.cpp b/src/Mod/PartDesign/App/Body.cpp index fdd25f48a..0179eeba2 100644 --- a/src/Mod/PartDesign/App/Body.cpp +++ b/src/Mod/PartDesign/App/Body.cpp @@ -44,6 +44,7 @@ #include "DatumPoint.h" #include "DatumLine.h" #include "DatumPlane.h" +#include "ShapeBinder.h" #include "Body.h" #include "BodyPy.h" @@ -244,7 +245,8 @@ const bool Body::isAllowed(const App::DocumentObject* f) return (f->getTypeId().isDerivedFrom(PartDesign::Feature::getClassTypeId()) || f->getTypeId().isDerivedFrom(Part::Datum::getClassTypeId()) || // TODO Shouldn't we replace it with Sketcher::SketchObject? (2015-08-13, Fat-Zer) - f->getTypeId().isDerivedFrom(Part::Part2DObject::getClassTypeId()) + f->getTypeId().isDerivedFrom(Part::Part2DObject::getClassTypeId()) || + f->getTypeId().isDerivedFrom(PartDesign::ShapeBinder::getClassTypeId()) // TODO Why this lines was here? why should we allow anything of those? (2015-08-13, Fat-Zer) //f->getTypeId().isDerivedFrom(Part::FeaturePython::getClassTypeId()) // trouble with this line on Windows!? Linker fails to find getClassTypeId() of the Part::FeaturePython... //f->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId())