Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10760 in orxonox.OLD for branches/presentation/src/lib/graphics


Ignore:
Timestamp:
Jun 21, 2007, 2:29:46 AM (18 years ago)
Author:
nicolasc
Message:

Widget Improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/lib/graphics/importer/static_model.cc

    r10758 r10760  
    103103  // go through all groups and check if they are mounts
    104104  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();)
    106106  {
    107107    //PRINTF(0)("Found a MountPoint: %s\n", groupName.c_str());
     
    113113    // check if the name has a "MP" prefix or else it won't work
    114114    if( groupName.find("MP.", 0) == std::string::npos){
     115      groupIt++;
    115116      continue;
    116117    }
     
    125126      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",
    126127                groupName.c_str(), (*groupIt)._faces.size());
     128      groupIt++;
    127129      continue;
    128130    }
     
    211213//     printf("adding MP\n");
    212214     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);
    214219  }
    215220}
Note: See TracChangeset for help on using the changeset viewer.