Changeset 7071 in orxonox.OLD for trunk/src/lib/graphics/importer/md2Model.cc
- Timestamp:
- Feb 7, 2006, 2:58:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/md2Model.cc
r7068 r7071 157 157 the animation types can be looked up in the animationType table 158 158 */ 159 void MD2Model::setAnim(int type )159 void MD2Model::setAnim(int type, int animPlayback) 160 160 { 161 161 if( (type < 0) || (type > MAX_ANIMATIONS) ) … … 174 174 this->animationState.type = type; 175 175 this->animationState.numPlays = 0; 176 this->animationState.animPlaybackMode = animPlayback; 176 177 177 178 this->animationState.interpolationState = 0.0f; … … 315 316 } 316 317 317 if( this->animationState.currentFrame > (this->data->numFrames - 1) )318 if( this->animationState.currentFrame > (this->data->numFrames - 1) && this->animationState.animPlaybackMode == MD2_ANIM_LOOP) 318 319 this->animationState.currentFrame = 0; 319 320 if( this->animationState.nextFrame > (this->data->numFrames - 1) )
Note: See TracChangeset
for help on using the changeset viewer.