Changeset 2064
- Timestamp:
- Oct 29, 2008, 11:27:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/CameraHandler.cc
r2030 r2064 69 69 this->cameraList_.front()->removeFocus(); 70 70 71 camera->setFocus(this->viewport_); 72 71 73 // add to list 74 std::list<Camera*>::iterator it; 75 for (it = this->cameraList_.begin(); it != this->cameraList_.end(); ++it) 76 { 77 if ((*it) == camera) 78 return; // make sure we don't add it twice 79 } 72 80 this->cameraList_.push_front(camera); 73 camera->setFocus(this->viewport_);74 81 } 75 82
Note: See TracChangeset
for help on using the changeset viewer.