Changeset 1694 for code/branches/gui/src/orxonox/objects/Skybox.cc
- Timestamp:
- Sep 1, 2008, 10:20:24 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/objects/Skybox.cc
r1653 r1694 39 39 #include "core/Debug.h" 40 40 #include "core/XMLPort.h" 41 #include "Settings.h" 41 42 42 43 namespace orxonox … … 56 57 void Skybox::setSkybox(const std::string& skyboxname) 57 58 { 58 GraphicsEngine::getInstance().getLevelSceneManager()->setSkyBox(true, skyboxname); 59 if (Settings::showsGraphics()) 60 GraphicsEngine::getInstance().getLevelSceneManager()->setSkyBox(true, skyboxname); 59 61 } 60 62 … … 92 94 { 93 95 BaseObject::changedVisibility(); 94 GraphicsEngine::getInstance().getLevelSceneManager()->setSkyBox(this->isVisible(), this->skyboxSrc_); 96 if (Settings::showsGraphics()) 97 GraphicsEngine::getInstance().getLevelSceneManager()->setSkyBox(this->isVisible(), this->skyboxSrc_); 95 98 } 96 99 }
Note: See TracChangeset
for help on using the changeset viewer.