Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5284 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Oct 4, 2005, 10:03:26 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: issue in MD2Data: loaded filename even if it was NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/md2Model.cc

    r5235 r5284  
    297297  this->scaleFactor = 0.2f;
    298298
     299  this->fileName = NULL;
     300  this->skinFileName = NULL;
    299301  this->loadModel(modelFileName);
    300302  this->loadSkin(skinFileName);
     
    335337  sVec3D *pVertex;
    336338  int* pNormals;
     339
     340  //! @todo this chek should include deleting a loaded model (eventually)
     341  if (fileName == NULL)
     342    return false;
    337343
    338344  pFile = fopen(fileName, "rb");
Note: See TracChangeset for help on using the changeset viewer.