Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/ive/Geometry.cpp
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/ive/Geometry.cpp
r11857 r13041 69 69 out->writeArray(getVertexIndices()); 70 70 } 71 71 72 72 // Write normal array if any 73 73 if ( out->getVersion() < VERSION_0013 ) … … 90 90 } 91 91 } 92 92 93 93 // Write normal indices if any 94 94 out->writeBool(getNormalIndices()!=0); 95 95 if (getNormalIndices()){ 96 out->writeArray(getNormalIndices()); 96 out->writeArray(getNormalIndices()); 97 97 } 98 98 // Write color array if any. … … 105 105 out->writeBool(getColorIndices()!=0); 106 106 if (getColorIndices()){ 107 out->writeArray(getColorIndices()); 107 out->writeArray(getColorIndices()); 108 108 } 109 109 // Write secondary color array if any … … 220 220 } 221 221 } 222 222 223 223 // Read vertex array if any 224 224 bool va=in->readBool(); … … 302 302 setVertexAttribBinding(i,in->readBinding()); 303 303 setVertexAttribNormalize(i,in->readBool()?GL_TRUE:GL_FALSE); 304 304 305 305 // Read coords if valid 306 306 bool coords_valid = in->readBool(); 307 307 if(coords_valid) 308 308 setVertexAttribArray(i, in->readArray()); 309 309 310 310 // Read Indices if valid 311 311 bool indices_valid = in->readBool();
