- Timestamp:
- Nov 29, 2008, 12:25:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/objects/worldentities/Model.cc
r2087 r2296 48 48 { 49 49 if (this->isInitialized() && this->mesh_.getEntity()) 50 this-> getNode()->detachObject(this->mesh_.getEntity());50 this->detachOgreObject(this->mesh_.getEntity()); 51 51 } 52 52 … … 68 68 { 69 69 if (this->mesh_.getEntity()) 70 this-> getNode()->detachObject(this->mesh_.getEntity());70 this->detachOgreObject(this->mesh_.getEntity()); 71 71 72 72 this->mesh_.setMeshSource(this->getScene()->getSceneManager(), this->meshSrc_); … … 74 74 if (this->mesh_.getEntity()) 75 75 { 76 this-> getNode()->attachObject(this->mesh_.getEntity());76 this->attachOgreObject(this->mesh_.getEntity()); 77 77 this->mesh_.getEntity()->setCastShadows(this->bCastShadows_); 78 78 this->mesh_.setVisible(this->isVisible());
Note: See TracChangeset
for help on using the changeset viewer.