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/ParticleEmitter.cc

    r2087 r2296  
    6161    {
    6262        if (this->isInitialized() && this->particles_)
     63        {
     64            this->detachOgreObject(this->particles_->getParticleSystem());
    6365            delete this->particles_;
     66        }
    6467    }
    6568
     
    104107            {
    105108                this->particles_ = new ParticleInterface(this->getScene()->getSceneManager(), this->source_, this->LOD_);
    106                 this->particles_->addToSceneNode(this->getNode());
     109                this->attachOgreObject(particles_->getParticleSystem());
    107110                this->particles_->setVisible(this->isVisible());
    108111                this->particles_->setEnabled(this->isActive());
Note: See TracChangeset for help on using the changeset viewer.