Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10481 in orxonox.OLD for trunk


Ignore:
Timestamp:
Jan 29, 2007, 2:30:07 PM (18 years ago)
Author:
snellen
Message:

setRelCoor(0,0,0) messed up the viewmode, fixed this by setting the viewmode again when ataching the camera to a WorldEntity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/cameraman.cc

    r10480 r10481  
    153153{
    154154  currentCam->target->atach(target);
     155  currentCam->setViewMode(Camera::ViewNormal);
    155156  State::setCamera(this->currentCam,  dynamic_cast<CameraTarget*>(target));
    156157
     
    233234  {
    234235    dynamic_cast<Camera*>(targetCam)->target->atach(dynamic_cast<PNode*>(object));
     236    dynamic_cast<Camera*>(targetCam)->setViewMode(Camera::ViewNormal);
    235237    State::setCamera(dynamic_cast<Camera*>(targetCam),  dynamic_cast<CameraTarget*>(object));
    236238    return;
Note: See TracChangeset for help on using the changeset viewer.