Changeset 8644 in orxonox.OLD for branches/bsp_model/src/lib
- Timestamp:
- Jun 20, 2006, 6:15:27 PM (18 years ago)
- Location:
- branches/bsp_model/src/lib/graphics/importer/md3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/md3/md3_model.cc
r8640 r8644 538 538 539 539 540 /** 541 * visit the model 542 */ 543 void MD3Model::visit(MD3Data* data) 544 { 545 if ( (data->filename.find("lower") == std::string::npos && 546 (data->animation->type == LEGS || data->animation->type == BOTH)) // this is the LEGS model and the animation is applicable 547 || 548 (data->filename.find("upper") == std::string::npos && 549 (data->animation->type == TORSO || data->animation->type == BOTH)) // this is the TORSO model and the animation is applicable 550 || 551 data->animation->type == ALL // the animation is allways applicable 552 ) 553 this->doOp(data); 554 555 // visit children 556 std::map<int, MD3Data*>::iterator it = data->sortedMap.begin(); 557 while( it != data->sortedMap.end()) 558 { 559 this->visit(it->second); 560 it++; 561 } 562 } 563 540 564 541 565 /** -
branches/bsp_model/src/lib/graphics/importer/md3/md3_model.h
r8638 r8644 66 66 float* interpolateTransformation(MD3Data* data, MD3Tag* currFrameTag, MD3Tag* nextFrameTag, float frac, int i); 67 67 68 void visit(MD3Data* data); 68 69 void interpolate(MD3Data* data, MD3Animation* anim, int op, bool bInterpolate); 69 70 int next(MD3Data* data, int nr);
Note: See TracChangeset
for help on using the changeset viewer.