Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3857 in orxonox.OLD for orxonox/trunk/src


Ignore:
Timestamp:
Apr 17, 2005, 3:04:58 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: ANIM_INF_REWIND mode works

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/animation3d.cc

    r3856 r3857  
    134134                  break;
    135135                case ANIM_INF_REWIND:
     136                  this->replay();
    136137                  break;
    137138                }
    138139            }
    139           this->nextKeyFrame = this->keyFrameList->nextElement(this->nextKeyFrame);
     140          this->nextKeyFrame = this->keyFrameList->nextElement(this->currentKeyFrame);
    140141          this->setAnimFunc(this->currentKeyFrame->animFunc);     
    141142         
  • orxonox/trunk/src/t_animation.h

    r3856 r3857  
    193193                  break;
    194194                case ANIM_INF_REWIND:
     195                  this->replay();
    195196                  break;
    196197                }
    197198            }
    198           this->nextKeyFrame = this->keyFrameList->nextElement(this->nextKeyFrame);
     199          this->nextKeyFrame = this->keyFrameList->nextElement(this->currentKeyFrame);
    199200          printf("%p from:%f to:%f\n", this->currentKeyFrame,this->currentKeyFrame->value, this->nextKeyFrame->value);
    200201          this->setAnimFunc(this->currentKeyFrame->animFunc);     
Note: See TracChangeset for help on using the changeset viewer.