diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-24 12:55:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-24 12:55:23 +0300 |
commit | 190af55dd64b42ff21117118ac9d6643ad3cce3c (patch) | |
tree | 80f09fbe449e1243b3e766a44a5501ae7db48457 /src/particle | |
parent | 56bbd3eb0a8a17a02b436488555e2910d2775f10 (diff) | |
download | plus-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.cpp | 5 |
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 { |