- Timestamp:
- Dec 7, 2008, 4:18:11 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/Backlight.cc
r2254 r2350 38 38 #include "core/XMLPort.h" 39 39 #include "objects/Scene.h" 40 #include "util/Exception.h" 40 41 41 42 namespace orxonox … … 59 60 if (Core::showsGraphics()) 60 61 { 61 assert(this->getScene()); 62 assert(this->getScene()->getSceneManager()); 63 assert(this->getScene()->getRootSceneNode()); 62 if (!this->getScene()) 63 ThrowException(AbortLoading, "Can't create Camera, no scene given."); 64 if (!this->getScene()->getSceneManager()) 65 ThrowException(AbortLoading, "Can't create Camera, no scene manager given."); 66 if (!this->getScene()->getRootSceneNode()) 67 ThrowException(AbortLoading, "Can't create Camera, no root scene node given."); 64 68 65 69 this->ribbonTrail_ = this->getScene()->getSceneManager()->createRibbonTrail(this->getNode()->getName());
Note: See TracChangeset
for help on using the changeset viewer.