Changeset 1694 for code/branches/gui/src/orxonox/tools
- Timestamp:
- Sep 1, 2008, 10:20:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/tools/Mesh.cc
r1653 r1694 31 31 32 32 #include <sstream> 33 34 33 #include <OgreSceneManager.h> 35 36 34 #include "GraphicsEngine.h" 35 #include "Settings.h" 37 36 38 37 namespace orxonox … … 49 48 std::ostringstream name; 50 49 name << (Mesh::meshCounter_s++); 51 this->entity_ = GraphicsEngine::getInstance().getLevelSceneManager()->createEntity("Mesh" + name.str(), file); 50 if (Settings::showsGraphics()) 51 this->entity_ = GraphicsEngine::getInstance().getLevelSceneManager()->createEntity("Mesh" + name.str(), file); 52 52 } 53 53 54 54 Mesh::~Mesh() 55 55 { 56 if (this->entity_ )56 if (this->entity_ && Settings::showsGraphics()) 57 57 GraphicsEngine::getInstance().getLevelSceneManager()->destroyEntity(this->entity_); 58 58 }
Note: See TracChangeset
for help on using the changeset viewer.