Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5771 for code/trunk


Ignore:
Timestamp:
Sep 23, 2009, 9:59:07 PM (15 years ago)
Author:
rgrieder
Message:

Fixed possible bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/graphics/ParticleEmitter.cc

    r5747 r5771  
    110110            {
    111111                this->particles_ = new ParticleInterface(this->getScene()->getSceneManager(), this->source_, this->LOD_);
     112                this->attachOgreObject(this->particles_->getParticleSystem());
     113                this->particles_->setVisible(this->isVisible());
     114                this->particles_->setEnabled(this->isActive());
    112115            }
    113116            catch (...)
     
    116119                        << Exception::handleMessage() << std::endl;
    117120            }
    118             this->attachOgreObject(this->particles_->getParticleSystem());
    119             this->particles_->setVisible(this->isVisible());
    120             this->particles_->setEnabled(this->isActive());
    121121        }
    122122    }
Note: See TracChangeset for help on using the changeset viewer.