Changeset 5747 for code/trunk/src/orxonox/graphics
- Timestamp:
- Sep 19, 2009, 11:17:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/graphics/ParticleEmitter.cc
r5738 r5747 110 110 { 111 111 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());115 112 } 116 113 catch (...) 117 114 { 118 COUT(1) << "Error: Couln't load particle effect \"" << this->source_ << "\" " << std::endl;119 this->particles_ = 0;115 COUT(1) << "Error: Couln't load particle effect \"" << this->source_ << "\" because:" << std::endl 116 << Exception::handleMessage() << std::endl; 120 117 } 118 this->attachOgreObject(this->particles_->getParticleSystem()); 119 this->particles_->setVisible(this->isVisible()); 120 this->particles_->setEnabled(this->isActive()); 121 121 } 122 122 }
Note: See TracChangeset
for help on using the changeset viewer.