Changeset 4794 in orxonox.OLD for orxonox/trunk/src/lib/graphics/importer/model.cc
- Timestamp:
- Jul 6, 2005, 1:01:20 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/model.cc
r4793 r4794 826 826 this->normals->finalizeArray(); 827 827 828 if( unlikely((this->triangles = new sTriangle [this->vertices->getCount()]) == 0));828 if( unlikely((this->triangles = new sTriangleExt[this->vertices->getCount()]) == 0)); 829 829 { 830 830 PRINTF(2)("Could not allocate memory for triangle list\n"); … … 850 850 for(int j = 0; j < 3; ++j) 851 851 { 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; 853 854 tmpElem = tmpElem->next; 854 855 }
Note: See TracChangeset
for help on using the changeset viewer.