Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10594 in orxonox.OLD


Ignore:
Timestamp:
Feb 14, 2007, 9:02:14 PM (17 years ago)
Author:
snellen
Message:

fixed newly introduced bug in cameraman.cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cleanup/src/world_entities/tools/cameraman.cc

    r10593 r10594  
    113113  {
    114114    camera->lookAt(dynamic_cast<PNode*>(object));
     115    if( camera == State::getCamera() ) // If it is the current cam, we have to update the target
    115116    State::setCamera( camera,  dynamic_cast<CameraTarget*>(object));
    116117    return;
     
    137138    camera->target->atach(dynamic_cast<PNode*>(object));
    138139    camera->setViewMode(Camera::ViewNormal);
     140    if( camera == State::getCamera() ) // If it is the current cam, we have to update the target
    139141    State::setCamera( camera,  dynamic_cast<CameraTarget*>(object));
    140142    return;
Note: See TracChangeset for help on using the changeset viewer.