Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7058 in orxonox.OLD for trunk/src/lib/graphics/importer


Ignore:
Timestamp:
Feb 6, 2006, 4:26:02 PM (19 years ago)
Author:
patrick
Message:

trunk: md2 model size patch

File:
1 edited

Legend:

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

    r7055 r7058  
    7777MD2Model::MD2Model(const char* modelFileName, const char* skinFileName, float scale)
    7878{
     79  this->data->scaleFactor = scale;
     80  this->scaleFactor = this->data->scaleFactor;
     81
    7982  /* this creates the data container via ressource manager */
    8083  this->data = (MD2Data*)ResourceManager::getInstance()->load(modelFileName, MD2, RP_GAME, skinFileName);
    8184  if( unlikely(this->data == NULL))
    8285    PRINTF(0)("The model was not found, MD2Model Loader finished abnormaly. Update the data-repos\n");
    83 
    84   this->data->scaleFactor = scaleFactor;
    85   this->scaleFactor = this->data->scaleFactor;
    8686
    8787  shadeDots = MD2Model::anormsDots[0];
Note: See TracChangeset for help on using the changeset viewer.