diff --git a/src/Mod/PartDesign/App/Body.cpp b/src/Mod/PartDesign/App/Body.cpp index de12e7107..7eb72256e 100644 --- a/src/Mod/PartDesign/App/Body.cpp +++ b/src/Mod/PartDesign/App/Body.cpp @@ -244,9 +244,11 @@ const bool Body::isAllowed(const App::DocumentObject* f) // TODO: Should we introduce a PartDesign::FeaturePython class? This should then also return true for isSolidFeature() return (f->getTypeId().isDerivedFrom(PartDesign::Feature::getClassTypeId()) || f->getTypeId().isDerivedFrom(Part::Datum::getClassTypeId()) || - f->getTypeId().isDerivedFrom(Part::Part2DObject::getClassTypeId()) || + // TODO Shouldn't we replace it with Sketcher::SketchObject? (2015-08-13, Fat-Zer) + f->getTypeId().isDerivedFrom(Part::Part2DObject::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()) + //f->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId()) ); }