Tree: Adopt to special GeoFeatureGroup behaviours

This commit is contained in:
Stefan Tröger
2017-07-28 07:39:49 +02:00
committed by wmayer
parent 67734d161b
commit 2dc09c5e4d
3 changed files with 29 additions and 3 deletions

View File

@@ -76,9 +76,13 @@ std::vector<App::DocumentObject*> ViewProviderGeoFeatureGroupExtension::extensio
//object in the tree
std::vector<App::DocumentObject*> claim;
auto objs = ext->Group.getValues();
Base::Console().Message("Claim children GeoFatureGroup:\n");
for(auto obj : objs) {
if(obj->getInList().size()<=1)
if(obj->getInList().size()<=1) {
Base::Console().Message("%s\n", obj->getNameInDocument());
claim.push_back(obj);
}
}
return claim;
}