PDN: Make Loft and Pipe claim children correctly

This commit is contained in:
Kurt Kremitzki
2017-07-25 05:24:22 -05:00
committed by wmayer
parent f0c0c10f45
commit 94ab6b159c
2 changed files with 21 additions and 2 deletions

View File

@@ -56,10 +56,18 @@ ViewProviderLoft::~ViewProviderLoft()
std::vector<App::DocumentObject*> ViewProviderLoft::claimChildren(void)const
{
std::vector<App::DocumentObject*> temp;
App::DocumentObject* sketch = static_cast<PartDesign::Loft*>(getObject())->getVerifiedSketch(true);
PartDesign::Loft* pcLoft = static_cast<PartDesign::Loft*>(getObject());
App::DocumentObject* sketch = pcLoft->getVerifiedSketch(true);
if (sketch != NULL)
temp.push_back(sketch);
for(App::DocumentObject* obj : pcLoft->Sections.getValues()) {
if (obj != NULL)
temp.push_back(obj);
}
return temp;
}