Changeset 10594 in orxonox.OLD for branches/cleanup/src/world_entities
- Timestamp:
- Feb 14, 2007, 9:02:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cleanup/src/world_entities/tools/cameraman.cc
r10593 r10594 113 113 { 114 114 camera->lookAt(dynamic_cast<PNode*>(object)); 115 if( camera == State::getCamera() ) // If it is the current cam, we have to update the target 115 116 State::setCamera( camera, dynamic_cast<CameraTarget*>(object)); 116 117 return; … … 137 138 camera->target->atach(dynamic_cast<PNode*>(object)); 138 139 camera->setViewMode(Camera::ViewNormal); 140 if( camera == State::getCamera() ) // If it is the current cam, we have to update the target 139 141 State::setCamera( camera, dynamic_cast<CameraTarget*>(object)); 140 142 return;
Note: See TracChangeset
for help on using the changeset viewer.