From a8a730bf6d18ebd3a784bcb6d105dfae1b52ff77 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 9 Aug 2023 18:42:55 +0200 Subject: [PATCH] fixes #10063: Part_SectionCut does not work if the view is in perspective --- src/Mod/Part/Gui/SectionCutting.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Part/Gui/SectionCutting.cpp b/src/Mod/Part/Gui/SectionCutting.cpp index ec128dee3f..ddf2c15b7d 100644 --- a/src/Mod/Part/Gui/SectionCutting.cpp +++ b/src/Mod/Part/Gui/SectionCutting.cpp @@ -1962,8 +1962,9 @@ SbBox3f SectionCut::getViewBoundingBox() } Gui::View3DInventorViewer* viewer = view->getViewer(); SoCamera* camera = viewer->getSoRenderManager()->getCamera(); - if (!camera || !camera->isOfType(SoOrthographicCamera::getClassTypeId())) + if (!camera) { return Box; // return an empty box + } // get scene bounding box SoGetBoundingBoxAction action(viewer->getSoRenderManager()->getViewportRegion()); action.apply(viewer->getSceneGraph());