Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8661 in orxonox.OLD for branches/bsp_model/src/lib


Ignore:
Timestamp:
Jun 21, 2006, 4:09:58 AM (18 years ago)
Author:
patrick
Message:

bsp: hunted the bug down. may this be a sign for all other bugs

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_data.cc

    r8660 r8661  
    8383    this->tmpNormal[i] = new MD3Normal[this->meshes[i]->header->vertexNum];
    8484
    85   this->tmpMatrix = new float*[this->header->tagNum];
    86   for( int i = 0; i < this->header->tagNum; i++)
     85  // there are at most 4 different models and submodels
     86  this->tmpMatrix = new float*[4];
     87  for( int i = 0; i < 4; i++)
    8788    this->tmpMatrix[i] = new float[16];
    8889
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_model.cc

    r8660 r8661  
    215215      {
    216216        //we need to interpolate
    217 //         MD3Tag* nextFrameTag = data->boneFrames[data->animationState.nextFrame]->tags[child->parentTagIndex];
    218 //         this->interpolateTransformation(child, currFrameTag, nextFrameTag, data->animationState.interpolationFraction, i);
     217        MD3Tag* nextFrameTag = data->boneFrames[data->animationState.nextFrame]->tags[child->parentTagIndex];
     218        this->interpolateTransformation(child, currFrameTag, nextFrameTag, data->animationState.interpolationFraction, i);
    219219      }
    220220      else
Note: See TracChangeset for help on using the changeset viewer.