Changeset 10728 in orxonox.OLD for branches/presentation/src/lib
- Timestamp:
- Jun 20, 2007, 11:39:18 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/lib/graphics/importer/static_model.cc
r10714 r10728 101 101 void StaticModel::extractMountPoints() 102 102 { 103 printf("extracting MP...");103 // printf("extracting MP..."); 104 104 // go through all groups and check if they are mounts 105 105 std::vector<StaticModelData::Group>::iterator groupIt = this->data->getGroups().begin(); 106 for( ; groupIt != this->data->getGroups().end(); )106 for( ; groupIt != this->data->getGroups().end(); groupIt++) 107 107 { 108 108 //PRINTF(0)("Found a MountPoint: %s\n", groupName.c_str()); … … 114 114 // check if the name has a "MP" prefix or else it won't work 115 115 if( groupName.find("MP.", 0) == std::string::npos){ 116 groupIt++;116 // groupIt++; 117 117 // printf("Found MP: "); 118 118 continue; … … 129 129 groupName.c_str(), (*groupIt)._faces.size()); 130 130 // printf("wrong number of faces\n\n"); 131 groupIt++;131 // groupIt++; 132 132 continue; 133 133 } … … 226 226 // printf("removing item..."); 227 227 // remove the group from the model list (mount points do not need to be drawn) 228 //std::vector<StaticModelData::Group>::iterator tmpIt = groupIt;229 groupIt++;228 std::vector<StaticModelData::Group>::iterator tmpIt = groupIt; 229 // groupIt++; 230 230 // printf(" removing..."); 231 //this->data->getGroups().erase(tmpIt);231 this->data->getGroups().erase(tmpIt); 232 232 // printf(" REMOVED\n"); 233 233 }
Note: See TracChangeset
for help on using the changeset viewer.