Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/lwo/old_lw.cpp
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/lwo/old_lw.cpp
r9397 r13041 261 261 { 262 262 int guess_cnt = lwo->face_cnt; 263 263 264 264 while (nbytes > 0) { 265 265 lwFace *face; … … 281 281 /* allocate space for points */ 282 282 face->index = (int*) g_malloc0(sizeof(int)*face->index_cnt); 283 283 284 284 /* read points in */ 285 285 for (i=0; i<face->index_cnt; i++) { … … 287 287 nbytes -= 2; 288 288 } 289 289 290 290 /* read surface material */ 291 291 face->material = read_short(f); 292 292 nbytes -= 2; 293 293 294 294 /* skip over detail polygons */ 295 295 if (face->material < 0) { … … 455 455 { 456 456 g_return_if_fail(lw_object != NULL); 457 457 458 458 if (lw_object->face) { 459 459 int i;
