summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/particle/particleemitter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/particle/particleemitter.cpp b/src/particle/particleemitter.cpp
index bee38f3b3..1df611ae7 100644
--- a/src/particle/particleemitter.cpp
+++ b/src/particle/particleemitter.cpp
@@ -224,7 +224,10 @@ ParticleEmitter::ParticleEmitter(const XmlNodePtrConst emitterNode,
}
else if (name == "follow-parent")
{
- mParticleFollow = true;
+ std::string value = XML::getProperty(propertyNode,
+ "value", "0");
+ if (value == "1" || value == "true")
+ mParticleFollow = true;
}
else
{