Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 29, 2008, 12:25:22 AM (15 years ago)
Author:
rgrieder
Message:

Made return value of WorldEntity::getNode() const —> Modifying the node_ will not anymore be allowed.
That change implicates:

  • Removed Ogre::SceneNode from ParticleInterface. It gets connected now by the ParticleEmitter
  • Added functions attachOgreObject and detachOgreObject to WorldEntity
  • changed all getNode()→attachObject(…) to attachOgreObject(…)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics/src/orxonox/objects/worldentities/Model.cc

    r2087 r2296  
    4848    {
    4949        if (this->isInitialized() && this->mesh_.getEntity())
    50             this->getNode()->detachObject(this->mesh_.getEntity());
     50            this->detachOgreObject(this->mesh_.getEntity());
    5151    }
    5252
     
    6868    {
    6969        if (this->mesh_.getEntity())
    70             this->getNode()->detachObject(this->mesh_.getEntity());
     70            this->detachOgreObject(this->mesh_.getEntity());
    7171
    7272        this->mesh_.setMeshSource(this->getScene()->getSceneManager(), this->meshSrc_);
     
    7474        if (this->mesh_.getEntity())
    7575        {
    76             this->getNode()->attachObject(this->mesh_.getEntity());
     76            this->attachOgreObject(this->mesh_.getEntity());
    7777            this->mesh_.getEntity()->setCastShadows(this->bCastShadows_);
    7878            this->mesh_.setVisible(this->isVisible());
Note: See TracChangeset for help on using the changeset viewer.