Changeset 1552 for code/trunk/src/orxonox/objects/WorldEntity.cc
- Timestamp:
- Jun 6, 2008, 5:31:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/WorldEntity.cc
r1505 r1552 66 66 } 67 67 } 68 68 69 69 70 70 WorldEntity::~WorldEntity() 71 71 { 72 // just to make sure we clean out all scene nodes 73 if(this->getNode()) 74 this->getNode()->removeAndDestroyAllChildren(); 72 // just to make sure we clean out all scene nodes 73 if(this->getNode()) 74 { 75 this->getNode()->removeAndDestroyAllChildren(); 76 GraphicsEngine::getSingleton().getSceneManager()->destroySceneNode(this->getName()); 77 } 75 78 } 76 79 … … 95 98 create(); 96 99 } 97 100 98 101 99 102 void WorldEntity::setYawPitchRoll(const Degree& yaw, const Degree& pitch, const Degree& roll) … … 122 125 123 126 XMLPortObject(WorldEntity, WorldEntity, "attached", attachWorldEntity, getAttachedWorldEntity, xmlelement, mode, false, true); 124 127 125 128 WorldEntity::create(); 126 129 }
Note: See TracChangeset
for help on using the changeset viewer.