From bc713e2d6b5ad8065ef275d6640b4e352e560690 Mon Sep 17 00:00:00 2001 From: Rexbas Date: Thu, 8 Feb 2024 21:09:08 +0100 Subject: [PATCH] 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 --- src/Gui/View3DInventorViewer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Gui/View3DInventorViewer.cpp b/src/Gui/View3DInventorViewer.cpp index d0ebdd14c8..653a1c84a6 100644 --- a/src/Gui/View3DInventorViewer.cpp +++ b/src/Gui/View3DInventorViewer.cpp @@ -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); }