Changeset 8292

Show
Ignore:
Timestamp:
05/08/08 18:48:49
Author:
robert
Message:

From Eric Sokolowsky, "I found one compilation error in OSG 2.4 in the Inventor plugin, where one node (SoTextureCoordinate3) was assumed to be available in all versions of Inventor but is actually only available in Coin. The use of the node is now protected by #ifdef COIN constructs. The attachment is based on OSG 2.4, not SVN."

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OpenSceneGraph/trunk/src/osgPlugins/Inventor/ConvertToInventor.cpp

    r8038 r8292  
    6868#include <Inventor/nodes/SoTexture2.h> 
    6969#include <Inventor/nodes/SoTextureCoordinate2.h> 
    70 #include <Inventor/nodes/SoTextureCoordinate3.h> 
    7170#include <Inventor/nodes/SoTextureCoordinateEnvironment.h> 
    7271#include <Inventor/nodes/SoTransform.h> 
     
    7574#include <Inventor/fields/SoFields.h> 
    7675#ifdef __COIN__ 
     76#include <Inventor/nodes/SoTextureCoordinate3.h> 
    7777#include <Inventor/nodes/SoTransparencyType.h> 
    7878#include <Inventor/VRMLnodes/SoVRMLBillboard.h> 
     
    12291229        } 
    12301230      } else 
     1231#ifdef __COIN__ 
    12311232      if (ivTexCoords->isOfType(SoTextureCoordinate3::getClassTypeId())) { 
    12321233        nonIndexedTexCoords = new SoTextureCoordinate3; 
     
    12401241        } 
    12411242      } else 
     1243#endif  // __COIN__ 
    12421244        nonIndexedTexCoords = ivTexCoords; 
    12431245 
     
    15401542        texCoords = new SoTextureCoordinate2; 
    15411543        osgArray2ivMField(g->getTexCoordArray(0), ((SoTextureCoordinate2*)texCoords)->point); 
    1542       } else { 
     1544      }  
     1545#ifdef __COIN__ 
     1546      else { 
    15431547        texCoords = new SoTextureCoordinate3; 
    15441548        osgArray2ivMField(g->getTexCoordArray(0), ((SoTextureCoordinate3*)texCoords)->point); 
    15451549      } 
     1550#endif   // __COIN__ 
    15461551    } 
    15471552    if (texCoords)