Changeset 10417 for code/branches/core7/src/orxonox
- Timestamp:
- May 3, 2015, 1:31:18 PM (10 years ago)
- Location:
- code/branches/core7/src/orxonox/collisionshapes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/orxonox/collisionshapes/CollisionShape.cc
r10415 r10417 82 82 if (this->parent_) 83 83 this->parent_->detach(this); 84 85 if (this->collisionShape_) 86 delete this->collisionShape_; 84 87 } 85 88 } -
code/branches/core7/src/orxonox/collisionshapes/CompoundCollisionShape.cc
r9667 r10417 71 71 it->first->notifyDetached(); 72 72 it->first->destroy(); 73 if (this->collisionShape_ == it->second) 74 this->collisionShape_ = NULL; // don't destroy it twice 73 75 } 74 76 75 77 delete this->compoundShape_; 78 if (this->collisionShape_ == this->compoundShape_) 79 this->collisionShape_ = NULL; // don't destroy it twice 76 80 } 77 81 } -
code/branches/core7/src/orxonox/collisionshapes/WorldEntityCollisionShape.cc
r10380 r10417 48 48 } 49 49 50 WorldEntityCollisionShape::~WorldEntityCollisionShape()51 {52 // Called always by WE destructor53 }54 55 50 void WorldEntityCollisionShape::updateParent() 56 51 { -
code/branches/core7/src/orxonox/collisionshapes/WorldEntityCollisionShape.h
r9667 r10417 39 39 public: 40 40 WorldEntityCollisionShape(Context* context); 41 virtual ~WorldEntityCollisionShape();42 41 43 42 inline void setWorldEntityOwner(WorldEntity* worldEntityOwner)
Note: See TracChangeset
for help on using the changeset viewer.