Changeset 3876 in orxonox.OLD for orxonox/trunk/src/util/animation/animation3d.cc
- Timestamp:
- Apr 18, 2005, 5:18:45 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/animation/animation3d.cc
r3874 r3876 90 90 KeyFrame3D* tmpKeyFrame; 91 91 92 if (bHasKeys) 92 // when adding the first frame 93 if (this->keyFrameCount == 0) 94 { 95 tmpKeyFrame = this->keyFrameList->firstElement(); 96 this->setAnimFunc(animFunc); 97 } 98 else 93 99 { 94 100 tmpKeyFrame = new KeyFrame3D; 101 // when adding the second frame 95 102 if (this->currentKeyFrame == this->nextKeyFrame) 96 103 this->nextKeyFrame = tmpKeyFrame; 97 104 this->keyFrameList->add(tmpKeyFrame); 98 99 }100 else101 {102 tmpKeyFrame = this->keyFrameList->firstElement();103 bHasKeys = true;104 this->setAnimFunc(animFunc);105 105 } 106 106 … … 109 109 tmpKeyFrame->duration = duration; 110 110 tmpKeyFrame->animFunc = animFunc; 111 111 this->keyFrameCount++; 112 112 } 113 113
Note: See TracChangeset
for help on using the changeset viewer.