From 40abcf5dcc96abe78359b3694f423a3f1ca3b3b4 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 10 Feb 2017 22:09:53 +0100 Subject: [PATCH] fix OSX build failure due to outdated Coin3d version --- src/Mod/PartDesign/Gui/CommandBody.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/PartDesign/Gui/CommandBody.cpp b/src/Mod/PartDesign/Gui/CommandBody.cpp index 0b27ab2e0..754d55b90 100644 --- a/src/Mod/PartDesign/Gui/CommandBody.cpp +++ b/src/Mod/PartDesign/Gui/CommandBody.cpp @@ -216,6 +216,9 @@ void CmdPartDesignBody::activated(int iMsg) actPart->getNameInDocument(), bodyName.c_str()); } + // The method 'SoCamera::viewBoundingBox' is still declared as protected in the Coin3d version + // for OSX. But since version 4.0 it should be public. +#if !defined(Q_OS_MAC) // if no part feature was there then auto-adjust the camera if (viewAll) { Gui::Document* doc = Gui::Application::Instance->getDocument(getDocument()); @@ -231,6 +234,7 @@ void CmdPartDesignBody::activated(int iMsg) camera->viewBoundingBox(bbox, aspectratio, 1.0f); } } +#endif updateActive(); }