Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 6, 2005, 1:01:20 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: now will take array indexes directly from the ModelFaceElement, Array::getIndex(…) not used but I will keep it, since its a good thing to have

File:
1 edited

Legend:

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

    r4793 r4794  
    826826  this->normals->finalizeArray();
    827827
    828   if( unlikely((this->triangles = new sTriangle[this->vertices->getCount()]) == 0));
     828  if( unlikely((this->triangles = new sTriangleExt[this->vertices->getCount()]) == 0));
    829829  {
    830830    PRINTF(2)("Could not allocate memory for triangle list\n");
     
    850850        for(int j = 0; j < 3; ++j)
    851851        {
    852           //this->triangles[i].indexToVertices[j] = this->vertices->getIndex(tmpElem);
     852          this->triangles[i].indexToVertices[j] = (unsigned int)tmpElem->vertexNumber;
     853          this->triangles[i].indexToTexCoor[j] = (unsigned int)tmpElem->texCoordNumber;
    853854          tmpElem = tmpElem->next;
    854855        }
Note: See TracChangeset for help on using the changeset viewer.