PartDesign/Body: remowe Part::Feature from isAllowed()

This commit is contained in:
Alexander Golubev 2015-08-14 02:34:35 +03:00 committed by Stefan Tröger
parent c388a84424
commit f9e67626ec

View File

@ -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())
);
}