PartDesign: Prevent Hole from claiming other features as children
This commit is contained in:
committed by
Chris Hennes
parent
09b199d879
commit
3e6e66cea8
@@ -49,10 +49,14 @@ ViewProviderHole::ViewProviderHole()
|
||||
|
||||
ViewProviderHole::~ViewProviderHole() = default;
|
||||
|
||||
std::vector<App::DocumentObject*> ViewProviderHole::claimChildren()const
|
||||
std::vector<App::DocumentObject*> ViewProviderHole::claimChildren() const
|
||||
{
|
||||
std::vector<App::DocumentObject*> temp;
|
||||
temp.push_back(getObject<PartDesign::Hole>()->Profile.getValue());
|
||||
|
||||
if (App::DocumentObject* profile = getObject<PartDesign::Hole>()->Profile.getValue();
|
||||
profile && !profile->isDerivedFrom<PartDesign::Feature>()) {
|
||||
temp.push_back(profile);
|
||||
}
|
||||
|
||||
return temp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user