From Martin Aumueller, "the new Inventor plugin needs some changes in order to compile against OpenInventor.

Just as in the pre-r6419 I used the COIN_BASIC_H define in order to discriminate
between the two versions of Inventor.

Additionally, I had to change the CMakeLists.txt to use the proper include path.
"
This commit is contained in:
Robert Osfield
2007-04-24 19:03:51 +00:00
parent d35d8d0fa8
commit 00a44eb636
3 changed files with 22 additions and 2 deletions

View File

@@ -10,7 +10,10 @@
#include <Inventor/SoInteraction.h>
#include <Inventor/nodekits/SoNodeKit.h>
#include <Inventor/nodes/SoSeparator.h>
#ifdef COIN_BASIC_H
#include <Inventor/VRMLnodes/SoVRMLImageTexture.h>
#endif
#include "ConvertFromInventor.h"
#include "GroupSoLOD.h"
@@ -45,8 +48,10 @@ ReaderWriterIV::readNode(const std::string& file,
// Initial GroupSoLOD node
GroupSoLOD::initClass();
#ifdef COIN_BASIC_H
// Disable delayed loading of VRML textures
SoVRMLImageTexture::setDelayFetchURL(FALSE);
#endif
// Open the file
SoInput input;