Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3858 in orxonox.OLD for orxonox/trunk/src/t_animation.h


Ignore:
Timestamp:
Apr 17, 2005, 3:27:54 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: moved the infinity-handling into animation.cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/t_animation.h

    r3857 r3858  
    185185          // checking, if we should still Play the animation
    186186          if (this->currentKeyFrame == this->keyFrameList->lastElement())
    187             {
    188               switch (this->postInfinity)
    189                 {
    190                 case ANIM_INF_CONSTANT:
    191                   this->localTime = 0.0;
    192                   this->bRunning = false;
    193                   break;
    194                 case ANIM_INF_REWIND:
    195                   this->replay();
    196                   break;
    197                 }
    198             }
     187            this->handleInfinity();
    199188          this->nextKeyFrame = this->keyFrameList->nextElement(this->currentKeyFrame);
    200189          printf("%p from:%f to:%f\n", this->currentKeyFrame,this->currentKeyFrame->value, this->nextKeyFrame->value);
Note: See TracChangeset for help on using the changeset viewer.