diff --git a/src/Mod/PartDesign/App/Body.cpp b/src/Mod/PartDesign/App/Body.cpp index c89584354..9a4fffeec 100644 --- a/src/Mod/PartDesign/App/Body.cpp +++ b/src/Mod/PartDesign/App/Body.cpp @@ -41,6 +41,7 @@ #include #include #include +#include using namespace PartDesign; @@ -222,7 +223,9 @@ const bool Body::isAllowed(const App::DocumentObject* f) return (f->getTypeId().isDerivedFrom(PartDesign::Feature::getClassTypeId()) || f->getTypeId().isDerivedFrom(Part::Datum::getClassTypeId()) || f->getTypeId().isDerivedFrom(Part::Part2DObject::getClassTypeId()) || - f->getTypeId().isDerivedFrom(Part::FeaturePython::getClassTypeId())); + //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()) + ); } void Body::addFeature(App::DocumentObject *feature)