Gui: Fix disappearing element handles in sketcher

Finds the bounding sphere when the editing view provider is set. This ensures the right bounding sphere is used for finding the near and far clipping plane
This commit is contained in:
Rexbas
2024-02-08 21:09:08 +01:00
parent daf0a04a18
commit a61d441a07

View File

@@ -1058,6 +1058,7 @@ void View3DInventorViewer::setEditingViewProvider(Gui::ViewProvider* vp, int Mod
{
this->editViewProvider = vp;
this->editViewProvider->setEditViewer(this, ModNum);
this->navigation->findBoundingSphere();
addEventCallback(SoEvent::getClassTypeId(), Gui::ViewProvider::eventCallback,this->editViewProvider);
}