[TechDraw] Unify Projection Group parent linking

This commit is contained in:
pavltom
2024-03-14 10:16:02 +01:00
committed by WandererFan
parent 87e0d10d33
commit 1ead8c6f0f
8 changed files with 25 additions and 55 deletions

View File

@@ -388,8 +388,7 @@ std::vector<App::DocumentObject*> ViewProviderPage::claimChildren(void) const
}
// Collect any child views
// for Page, valid children are any View except: DrawProjGroupItem
// DrawViewDimension
// for Page, valid children are any View except: DrawViewDimension
// DrawViewBalloon
// any FeatuerView in a DrawViewClip
// DrawHatch
@@ -407,9 +406,8 @@ std::vector<App::DocumentObject*> ViewProviderPage::claimChildren(void) const
}
App::DocumentObject* docObj = *it;
// Don't collect if dimension, projection group item, hatch or member of ClipGroup as these should be grouped elsewhere
if (docObj->isDerivedFrom(TechDraw::DrawProjGroupItem::getClassTypeId())
|| docObj->isDerivedFrom(TechDraw::DrawViewDimension::getClassTypeId())
// Don't collect if dimension, balloon, hatch or member of ClipGroup as these should be grouped elsewhere
if (docObj->isDerivedFrom(TechDraw::DrawViewDimension::getClassTypeId())
|| docObj->isDerivedFrom(TechDraw::DrawHatch::getClassTypeId())
|| docObj->isDerivedFrom(TechDraw::DrawViewBalloon::getClassTypeId())
|| (featView && featView->isInClip()))