Changeset 2023 for code/branches/objecthierarchy/src/orxonox/tools/Mesh.cc
- Timestamp:
- Oct 27, 2008, 10:56:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/tools/Mesh.cc
r2019 r2023 35 35 36 36 #include "core/Core.h" 37 #include "GraphicsEngine.h"38 37 #include "util/Convert.h" 39 38 #include "util/String.h" … … 64 63 this->scenemanager_->destroyEntity(this->entity_); 65 64 66 try65 if (Core::showsGraphics()) 67 66 { 68 this->entity_ = this->scenemanager_->createEntity("Mesh" + convertToString(Mesh::meshCounter_s++), meshsource); 69 this->entity_->setCastShadows(this->bCastShadows_); 70 } 71 catch (...) 72 { 73 COUT(1) << "Error: Couln't load mesh \"" << meshsource << "\"" << std::endl; 67 try 68 { 69 this->entity_ = this->scenemanager_->createEntity("Mesh" + convertToString(Mesh::meshCounter_s++), meshsource); 70 this->entity_->setCastShadows(this->bCastShadows_); 71 } 72 catch (...) 73 { 74 COUT(1) << "Error: Couln't load mesh \"" << meshsource << "\"" << std::endl; 75 } 74 76 } 75 77 }
Note: See TracChangeset
for help on using the changeset viewer.