Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10242 in orxonox.OLD


Ignore:
Timestamp:
Jan 16, 2007, 11:50:57 PM (17 years ago)
Author:
patrick
Message:

now the resource is loaded correctly

Location:
branches/mount_points/src/lib/graphics/importer/oif
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/mount_points/src/lib/graphics/importer/oif/object_information_file.cc

    r10241 r10242  
    142142void ObjectInformationFile::load(const std::string& fileName)
    143143{
     144  this->data = OIFData::Pointer(new OIFData(fileName));
    144145}
    145146
  • branches/mount_points/src/lib/graphics/importer/oif/resource_oif.cc

    r10241 r10242  
    2929  if (ptr)
    3030  {
    31     PRINTF(5)("FOUND OIF: %s\n", fileName.c_str());
     31    PRINTF(0)("FOUND OIF: %s\n", fileName.c_str());
    3232    this->acquireData(static_cast<ResourceOIF::OIFResourcePointer*>(ptr)->ptr());
    3333  }
    3434  else
    3535  {
    36     PRINTF(5)("NOT FOUND OIF: %s\n", fileName.c_str());
     36    PRINTF(0)("NOT FOUND OIF: %s\n", fileName.c_str());
    3737    std::string fullName = this->Resource::locateFile(fileName);
    38 
    39     this->ObjectInformationFile::load(fileName);
     38    PRINTF(0)("trying loading of: %s\n", fullName.c_str());
     39    this->load(fullName);
    4040    this->Resource::addResource(new ResourceOIF::OIFResourcePointer(fileName, keepLevel, this->ObjectInformationFile::dataPointer()));
    4141  }
Note: See TracChangeset for help on using the changeset viewer.