Enhanced Pick dialog for PartDesign feature's sketches

This commit is contained in:
jrheinlaender
2013-03-30 14:33:06 +04:30
committed by Stefan Tröger
parent 2e4b91a2d7
commit fb85cd2899
9 changed files with 467 additions and 1598 deletions

View File

@@ -86,7 +86,7 @@ const Part::TopoShape Body::getPreviousSolid(const PartDesign::Feature* f)
return static_cast<const PartDesign::Feature*>(*it)->Shape.getShape();
}
const bool Body::hasFeature(const PartDesign::Feature* f)
const bool Body::hasFeature(const App::DocumentObject* f)
{
std::vector<App::DocumentObject*> features = Model.getValues();
return std::find(features.begin(), features.end(), f) != features.end();