- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/txp/trpage_light.cpp
r12536 r13041 586 586 parse.AddCallback(TRPGLIGHTATTR_ANIMATION,&lightAttrCb,false); 587 587 parse.AddCallback(TRPGLIGHTATTR_COMMENT,&lightAttrCb,false); 588 parse.AddCallback(TRPGLIGHTATTR_HANDLE,&lightAttrCb,false); 588 parse.AddCallback(TRPGLIGHTATTR_HANDLE,&lightAttrCb,false); 589 589 parse.Parse(buf); 590 590 … … 945 945 { 946 946 LightMapType::const_iterator itr = lightMap.begin(); 947 for ( ; itr != lightMap.end( ); itr++) 947 for ( ; itr != lightMap.end( ); itr++) 948 948 { 949 949 if (!itr->second.isValid()) … … 966 966 } 967 967 lightMap[handle] = inLight; 968 return handle; 968 return handle; 969 969 } 970 970 int trpgLightTable::FindAddLightAttr(const trpgLightAttr& inLight) … … 1005 1005 buf.Add(numLights); 1006 1006 LightMapType::iterator itr = lightMap.begin(); 1007 for ( ; itr != lightMap.end( ); itr++) 1008 itr->second.Write(buf); 1007 for ( ; itr != lightMap.end( ); itr++) 1008 itr->second.Write(buf); 1009 1009 //for (unsigned int i=0;i<lightList.size();i++) 1010 1010 // lightList[i].Write(buf); … … 1050 1050 if (lightTok != TRPGLIGHTATTR) throw 1; 1051 1051 buf.PushLimit(len); 1052 trpgLightAttr light;// = lightList[i]; 1052 trpgLightAttr light;// = lightList[i]; 1053 1053 bool status = light.Read(buf); 1054 1054 buf.PopLimit();
