[Orxonox-commit 1051] r5771 - code/trunk/src/orxonox/graphics
rgrieder at orxonox.net
rgrieder at orxonox.net
Wed Sep 23 21:59:07 CEST 2009
Author: rgrieder
Date: 2009-09-23 21:59:07 +0200 (Wed, 23 Sep 2009)
New Revision: 5771
Modified:
code/trunk/src/orxonox/graphics/ParticleEmitter.cc
Log:
Fixed possible bug.
Modified: code/trunk/src/orxonox/graphics/ParticleEmitter.cc
===================================================================
--- code/trunk/src/orxonox/graphics/ParticleEmitter.cc 2009-09-23 19:32:15 UTC (rev 5770)
+++ code/trunk/src/orxonox/graphics/ParticleEmitter.cc 2009-09-23 19:59:07 UTC (rev 5771)
@@ -109,15 +109,15 @@
try
{
this->particles_ = new ParticleInterface(this->getScene()->getSceneManager(), this->source_, this->LOD_);
+ this->attachOgreObject(this->particles_->getParticleSystem());
+ this->particles_->setVisible(this->isVisible());
+ this->particles_->setEnabled(this->isActive());
}
catch (...)
{
COUT(1) << "Error: Couln't load particle effect \"" << this->source_ << "\" because:" << std::endl
<< Exception::handleMessage() << std::endl;
}
- this->attachOgreObject(this->particles_->getParticleSystem());
- this->particles_->setVisible(this->isVisible());
- this->particles_->setEnabled(this->isActive());
}
}
More information about the Orxonox-commit
mailing list