Changeset 5925 for code/branches/core5/src/orxonox/graphics
- Timestamp:
- Oct 9, 2009, 6:46:54 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/orxonox/graphics/Camera.cc
r5924 r5925 38 38 #include "core/CoreIncludes.h" 39 39 #include "core/ConfigValueIncludes.h" 40 #include "core/GameMode.h" 40 41 #include "core/GUIManager.h" 41 42 #include "Scene.h" … … 50 51 RegisterObject(Camera); 51 52 53 if (!GameMode::showsGraphics()) 54 ThrowException(AbortLoading, "Can't create Camera, no graphics."); 52 55 if (!this->getScene()) 53 56 ThrowException(AbortLoading, "Can't create Camera, no scene."); … … 76 79 if (this->isInitialized()) 77 80 { 78 if ( GUIManager::getInstance().getCamera() == this->camera_)79 GUIManager::getInstance().setCamera( NULL);81 if (GUIManager::getInstance().getCamera() == this->camera_) 82 GUIManager::getInstance().setCamera(NULL); 80 83 this->releaseFocus(); 81 84
Note: See TracChangeset
for help on using the changeset viewer.