Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2005, 9:37:16 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: material should now be loadable in the importer-test-class

File:
1 edited

Legend:

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

    r4370 r4371  
    7575      strncpy(this->objPath, fileName, len);
    7676      this->objPath[len] = '\0';
    77       Material::addTexturePath(this->objPath);
    7877      PRINTF(1)("Resolved file %s to Path %s.\n", fileName, this->objPath);
    7978    }
     79  else
     80    this->objPath = "./";
     81  Material::addTexturePath(this->objPath);
     82
    8083  this->readFromObjFile (fileName);
    8184  return true;
Note: See TracChangeset for help on using the changeset viewer.