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 9695bf01b8
commit bc713e2d6b

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);
}