PDN: Fix Loft claimChildren to only grab sketches

This commit is contained in:
Kurt Kremitzki
2017-08-06 03:58:55 -05:00
committed by wmayer
parent 0d3f5b114c
commit 2e92f301d6

View File

@@ -64,7 +64,7 @@ std::vector<App::DocumentObject*> ViewProviderLoft::claimChildren(void)const
temp.push_back(sketch);
for(App::DocumentObject* obj : pcLoft->Sections.getValues()) {
if (obj != NULL)
if (obj != NULL && obj->isDerivedFrom(Part::Part2DObject::getClassTypeId()))
temp.push_back(obj);
}