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