PartDesign/Body: remowe Part::Feature from isAllowed()
This commit is contained in:
committed by
Stefan Tröger
parent
9e47fea5ab
commit
37aab92bbc
@@ -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())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user