Changeset 3915 in orxonox.OLD for orxonox/trunk/src/lib/graphics/importer/model.cc
- Timestamp:
- Apr 21, 2005, 1:59:59 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/model.cc
r3914 r3915 48 48 this->initGroup (this->currentGroup); 49 49 this->scaleFactor = 1; 50 this->material = new Material();51 50 52 51 this->vertices = new Array(); … … 83 82 } 84 83 84 // deleting the MaterialList 85 85 PRINTF(5)("Deleting Materials.\n"); 86 if (this->material) 87 delete this->material; 88 89 // deleting the MaterialList 86 87 tIterator<Material>* tmpIt = this->materialList->getIterator(); 88 Material* material = tmpIt->nextElement(); 89 while(material) 90 { 91 delete material; 92 material = tmpIt->nextElement(); 93 } 94 delete tmpIt; 90 95 delete materialList; 91 96 }
Note: See TracChangeset
for help on using the changeset viewer.