Skip to content

Commit

Permalink
handle Coin3d version older than 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Feb 11, 2017
1 parent d7ed8c4 commit 1a8d535
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Mod/PartDesign/Gui/CommandBody.cpp
Expand Up @@ -26,6 +26,7 @@
# include <QApplication>
# include <QMessageBox>
# include <QInputDialog>
# include <Inventor/C/basic.h>
# include <Inventor/nodes/SoCamera.h>
#endif

Expand Down Expand Up @@ -216,9 +217,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)
// The method 'SoCamera::viewBoundingBox' is still declared as protected in Coin3d versions
// older than 4.0.
#if COIN_MAJOR_VERSION >= 4
// if no part feature was there then auto-adjust the camera
if (viewAll) {
Gui::Document* doc = Gui::Application::Instance->getDocument(getDocument());
Expand Down

0 comments on commit 1a8d535

Please sign in to comment.