Changeset 10760 in orxonox.OLD for branches/presentation/src/lib/graphics/importer
- Timestamp:
- Jun 21, 2007, 2:29:46 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/lib/graphics/importer/static_model.cc
r10758 r10760 103 103 // go through all groups and check if they are mounts 104 104 std::vector<StaticModelData::Group>::iterator groupIt = this->data->getGroups().begin(); 105 for( ; groupIt != this->data->getGroups().end(); groupIt++)105 for( ; groupIt != this->data->getGroups().end();) 106 106 { 107 107 //PRINTF(0)("Found a MountPoint: %s\n", groupName.c_str()); … … 113 113 // check if the name has a "MP" prefix or else it won't work 114 114 if( groupName.find("MP.", 0) == std::string::npos){ 115 groupIt++; 115 116 continue; 116 117 } … … 125 126 PRINTF(4)("the face count of %s is wrong, perhaps you missnamed this object or used the wrong mount point object (got %i faces)\n", 126 127 groupName.c_str(), (*groupIt)._faces.size()); 128 groupIt++; 127 129 continue; 128 130 } … … 211 213 // printf("adding MP\n"); 212 214 this->addMountPoint( zAxis, yAxis, center, groupName); 213 215 // remove the group from the model list (mount points do not need to be drawn) 216 // std::vector<StaticModelData::Group>::iterator tmpIt = groupIt; 217 groupIt++; 218 // this->data->getGroups().erase(tmpIt); 214 219 } 215 220 }
Note: See TracChangeset
for help on using the changeset viewer.