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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user