From 190af55dd64b42ff21117118ac9d6643ad3cce3c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Jul 2014 12:55:23 +0300 Subject: Fix follow-parent particle attribute. --- src/particle/particleemitter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/particle') 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 { -- cgit v1.2.3-70-g09d2