PDN: Fix Pipe claimChildren to only grab sketches

This commit is contained in:
Kurt Kremitzki
2017-08-12 14:48:14 +02:00
committed by wmayer
parent b6abbeb9cc
commit 0d3f5b114c
+2 -2
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;