Changeset 10919 for code/branches/cpp11_v2/src/orxonox/collisionshapes
- Timestamp:
- Dec 5, 2015, 10:47:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/collisionshapes/CompoundCollisionShape.cc
r10917 r10919 200 200 bool bEmpty = true; // Whether the CompoundCollisionShape is empty. 201 201 // Iterate over all CollisionShapes that belong to this CompoundCollisionShape. 202 for ( std::map<CollisionShape*, btCollisionShape*>::const_iterator it = this->attachedShapes_.begin(); it != this->attachedShapes_.end(); ++it)202 for (const auto& mapEntry : this->attachedShapes_) 203 203 { 204 204 // TODO: Make sure this is correct. 205 if ( it->second)205 if (mapEntry.second) 206 206 { 207 207 bEmpty = false; 208 if (! it->first->hasTransform() && bPrimitive)209 primitive = it->second;208 if (!mapEntry.first->hasTransform() && bPrimitive) 209 primitive = mapEntry.second; 210 210 else 211 211 {
Note: See TracChangeset
for help on using the changeset viewer.