summaryrefslogtreecommitdiff
path: root/src/particle
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-24 12:55:23 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-24 12:55:23 +0300
commit190af55dd64b42ff21117118ac9d6643ad3cce3c (patch)
tree80f09fbe449e1243b3e766a44a5501ae7db48457 /src/particle
parent56bbd3eb0a8a17a02b436488555e2910d2775f10 (diff)
downloadplus-190af55dd64b42ff21117118ac9d6643ad3cce3c.tar.gz
plus-190af55dd64b42ff21117118ac9d6643ad3cce3c.tar.bz2
plus-190af55dd64b42ff21117118ac9d6643ad3cce3c.tar.xz
plus-190af55dd64b42ff21117118ac9d6643ad3cce3c.zip
Fix follow-parent particle attribute.
Diffstat (limited to 'src/particle')
-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
{