Changeset 3846 in orxonox.OLD for orxonox/trunk/src/animation.h
- Timestamp:
- Apr 17, 2005, 1:32:39 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/animation.h
r3833 r3846 239 239 if (localTime >= this->currentKeyFrame->duration) 240 240 { 241 // switching to the next Key-Frame 242 this->currentKeyFrame = this->nextKeyFrame; 241 243 this->localTime = 0; 244 // checking, if we should still Play the animation 242 245 if (this->currentKeyFrame == this->keyFrameList->lastElement()) 243 switch (this->postInfinity)244 {245 case ANIM_INF_CONSTANT:246 this->bRunning = false;247 break;248 case ANIM_INF_REWIND:249 break;250 }251 //this->currentKeyFrame = this->keyFrameList->nextElement(this->currentKeyFrame);252 this->currentKeyFrame = this->nextKeyFrame;246 { 247 switch (this->postInfinity) 248 { 249 case ANIM_INF_CONSTANT: 250 this->bRunning = false; 251 break; 252 case ANIM_INF_REWIND: 253 break; 254 } 255 } 253 256 this->nextKeyFrame = this->keyFrameList->nextElement(this->nextKeyFrame); 254 257 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.