Changeset 9406 in orxonox.OLD for trunk/src/lib/graphics/importer/static_model.cc
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/static_model.cc
r8362 r9406 23 23 #include <stdarg.h> 24 24 25 using namespace std; 25 26 26 27 27 … … 161 161 { 162 162 PRINTF(4)("Deleting Model "); 163 if ( this->getName())164 { 165 PRINT(4)("%s\n", this->get Name());163 if (!this->getName().empty()) 164 { 165 PRINT(4)("%s\n", this->getCName()); 166 166 } 167 167 else … … 178 178 179 179 //! @todo do we really have to delete this material?? 180 list<ModelMaterial*>::iterator modMat;180 std::list<ModelMaterial*>::iterator modMat; 181 181 for(modMat = this->materialList.begin(); modMat != this->materialList.end(); modMat++) 182 182 { … … 214 214 void StaticModel::rebuild() 215 215 { 216 PRINTF(3)("Rebuilding Model '%s'\n", this->get Name());216 PRINTF(3)("Rebuilding Model '%s'\n", this->getCName()); 217 217 this->finalize(); 218 218 } … … 266 266 tmpGroup = tmpGroup->next; 267 267 } 268 PRINTF(2)("Model number %i in %s not Found.\n", groupNumber, this->get Name());268 PRINTF(2)("Model number %i in %s not Found.\n", groupNumber, this->getCName()); 269 269 return; 270 270 } … … 291 291 tmpGroup = tmpGroup->next; 292 292 } 293 PRINTF(2)("Model Named %s in %s not Found.\n", groupName.c_str(), this->get Name());293 PRINTF(2)("Model Named %s in %s not Found.\n", groupName.c_str(), this->getCName()); 294 294 return; 295 295 } … … 358 358 Material* StaticModel::findMaterialByName(const std::string& materialName) 359 359 { 360 list<ModelMaterial*>::iterator modMat;360 std::list<ModelMaterial*>::iterator modMat; 361 361 for (modMat = this->materialList.begin(); modMat != this->materialList.end(); modMat++) 362 362 if (materialName == (*modMat)->material->getName()) … … 748 748 { 749 749 tmpFace->material->select(); 750 PRINTF(5)("using material %s for coming Faces.\n", tmpFace->material->get Name());750 PRINTF(5)("using material %s for coming Faces.\n", tmpFace->material->getCName()); 751 751 } 752 752 } … … 840 840 else if( tmpFace->vertexCount > 4) { 841 841 if (!warned) { 842 PRINTF(2)("This model (%s) got over 4 vertices per face <=> conflicts in the CD engine!\n", this->get Name());842 PRINTF(2)("This model (%s) got over 4 vertices per face <=> conflicts in the CD engine!\n", this->getCName()); 843 843 warned = true; 844 844 }
Note: See TracChangeset
for help on using the changeset viewer.