fix OSX build failure due to outdated Coin3d version

This commit is contained in:
wmayer 2017-02-10 22:09:53 +01:00
parent 79d7f3e571
commit 40abcf5dcc

View File

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