Gui: Use Coin 4.0.3 fix for orthographic camera clipping

This commit is contained in:
Bas Ruigrok
2024-09-07 11:09:48 +02:00
committed by Yorik van Havre
parent fdb0b46857
commit 6f0c3d2fea
4 changed files with 30 additions and 1 deletions

View File

@@ -1073,7 +1073,11 @@ void View3DInventorViewer::setEditingViewProvider(Gui::ViewProvider* vp, int Mod
{
this->editViewProvider = vp;
this->editViewProvider->setEditViewer(this, ModNum);
#if (COIN_MAJOR_VERSION * 100 + COIN_MINOR_VERSION * 10 + COIN_MICRO_VERSION < 403)
this->navigation->findBoundingSphere();
#endif
addEventCallback(SoEvent::getClassTypeId(), Gui::ViewProvider::eventCallback,this->editViewProvider);
}
@@ -1536,7 +1540,9 @@ void View3DInventorViewer::setSceneGraph(SoNode* root)
}
}
#if (COIN_MAJOR_VERSION * 100 + COIN_MINOR_VERSION * 10 + COIN_MICRO_VERSION < 403)
navigation->findBoundingSphere();
#endif
}
void View3DInventorViewer::savePicture(int width, int height, int sample, const QColor& bg, QImage& img) const