PDN: Fix Pipe claimChildren to only grab sketches

This commit is contained in:
Kurt Kremitzki
2017-08-04 01:34:50 -05:00
committed by wmayer
parent b6abbeb9cc
commit 0d3f5b114c

View File

@@ -64,11 +64,11 @@ std::vector<App::DocumentObject*> ViewProviderPipe::claimChildren(void)const
temp.push_back(sketch);
App::DocumentObject* spine = pcPipe->Spine.getValue();
if (spine != NULL)
if (spine != NULL && spine->isDerivedFrom(Part::Part2DObject::getClassTypeId()))
temp.push_back(spine);
App::DocumentObject* auxspine = pcPipe->AuxillerySpine.getValue();
if (auxspine != NULL)
if (auxspine != NULL && auxspine->isDerivedFrom(Part::Part2DObject::getClassTypeId()))
temp.push_back(auxspine);
return temp;