handle Coin3d version older than 4.0
This commit is contained in:
parent
d7ed8c4383
commit
1a8d535263
|
@ -26,6 +26,7 @@
|
||||||
# include <QApplication>
|
# include <QApplication>
|
||||||
# include <QMessageBox>
|
# include <QMessageBox>
|
||||||
# include <QInputDialog>
|
# include <QInputDialog>
|
||||||
|
# include <Inventor/C/basic.h>
|
||||||
# include <Inventor/nodes/SoCamera.h>
|
# include <Inventor/nodes/SoCamera.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -216,9 +217,9 @@ void CmdPartDesignBody::activated(int iMsg)
|
||||||
actPart->getNameInDocument(), bodyName.c_str());
|
actPart->getNameInDocument(), bodyName.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
// The method 'SoCamera::viewBoundingBox' is still declared as protected in the Coin3d version
|
// The method 'SoCamera::viewBoundingBox' is still declared as protected in Coin3d versions
|
||||||
// for OSX. But since version 4.0 it should be public.
|
// older than 4.0.
|
||||||
#if !defined(Q_OS_MAC)
|
#if COIN_MAJOR_VERSION >= 4
|
||||||
// if no part feature was there then auto-adjust the camera
|
// if no part feature was there then auto-adjust the camera
|
||||||
if (viewAll) {
|
if (viewAll) {
|
||||||
Gui::Document* doc = Gui::Application::Instance->getDocument(getDocument());
|
Gui::Document* doc = Gui::Application::Instance->getDocument(getDocument());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user