Changeset 9962
- Timestamp:
- 03/23/09 21:25:51 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/x/ReaderWriterDirectX.cpp
r9527 r9962 156 156 const DX::MeshTextureCoords* meshTexCoords = mesh.getMeshTextureCoords(); 157 157 //std::cerr << "texcoord=" << meshTexCoords << std::endl; 158 if (!meshTexCoords)159 return NULL;160 158 161 159 /* … … 289 287 osg::Vec3Array* vertexArray = (osg::Vec3Array*) geom->getVertexArray(); 290 288 osg::Vec3Array* normalArray = (osg::Vec3Array*) geom->getNormalArray(); 291 osg::Vec2Array* texCoordArray = (osg::Vec2Array*) geom->getTexCoordArray(0); 289 osg::Vec2Array* texCoordArray=NULL; // only make them if the original has them 290 if(meshTexCoords) texCoordArray = (osg::Vec2Array*) geom->getTexCoordArray(0); 292 291 293 292 // Add vertices, normals, texcoords
