Part Grid: Exclude the grid group from bbox computation (#12349)

Fixes the problem where View_FitAll would compute a huge bounding box
when the infinite grid is enabled.

Closes #11570

Co-authored-by: wwmayer <werner.wm.mayer@gmx.de>
This commit is contained in:
LemonBoy
2024-02-13 21:42:51 +01:00
committed by GitHub
parent 74c52c9063
commit c0e318c6d0

View File

@@ -271,7 +271,9 @@ void GridExtensionP::createGrid(bool cameraUpdate)
void GridExtensionP::createGridPart(int numberSubdiv, bool subDivLines, bool divLines, int pattern, SoBaseColor* color, int lineWidth)
{
SoGroup* parent = new Gui::SoSkipBoundingGroup();
auto* parent = new Gui::SoSkipBoundingGroup();
parent->mode = Gui::SoSkipBoundingGroup::EXCLUDE_BBOX;
GridRoot->addChild(parent);
SoVertexProperty* vts;