- Timestamp:
- 08/26/04 18:20:26 (9 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/obj/ReaderWriterOBJ.cpp
r3323 r3325 269 269 } 270 270 271 bool reverseWinding = true;272 273 271 if (numPolygonElements>0) 274 272 { … … 285 283 drawArrayLengths->push_back(element.vertexIndices.size()); 286 284 287 if ( reverseWinding)285 if (model.needReverse(element)) 288 286 { 289 287 // need to reverse so add to OSG arrays in same order as in OBJ, as OSG assume anticlockwise ordering. … … 320 318 ++index_itr) 321 319 { 322 vertices->push_back( model.vertices[*index_itr]);320 vertices->push_back(transformVertex(model.vertices[*index_itr])); 323 321 } 324 322 if (numNormalIndices) … … 328 326 ++index_itr) 329 327 { 330 normals->push_back( model.normals[*index_itr]);328 normals->push_back(transformNormal(model.normals[*index_itr])); 331 329 } 332 330 }
