Changeset 3284

Show
Ignore:
Timestamp:
08/16/04 16:03:17 (10 years ago)
Author:
robert
Message:

Fix to order of materials

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/obj/glm.cpp

    r3282 r3284  
    839839      sscanf(buf, "%s %s", buf, buf); 
    840840       
    841       /*group->material =*/ material = _glmFindMaterial(model, buf); 
    842  
    843       // a hack by Robert Osfield to account for usemtl being infront 
    844       // or the group, or after - but only one line after. 
    845       // original code always assigned material to current group. 
    846       if (previousLineWas_g || firstGroup) group->material = material; 
     841      material = _glmFindMaterial(model, buf); 
     842       
     843      group->material = material; 
    847844 
    848845      break;