From 899d3b925ccb249de881bbc957f6e4ddc754cbbd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 20 Aug 2017 00:34:20 +0300 Subject: Add function for read float and double number from xml. --- src/particle/particleemitter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/particle/particleemitter.cpp') diff --git a/src/particle/particleemitter.cpp b/src/particle/particleemitter.cpp index 326daea7a..642acd851 100644 --- a/src/particle/particleemitter.cpp +++ b/src/particle/particleemitter.cpp @@ -473,15 +473,15 @@ ParticleEmitter::readParticleEmitterProp(XmlNodePtrConst propertyNode, T def) { ParticleEmitterProp retval; - def = static_cast(XML::getFloatProperty(propertyNode, "value", + def = static_cast(XML::getDoubleProperty(propertyNode, "value", static_cast(def))); - retval.set(static_cast(XML::getFloatProperty(propertyNode, "min", - static_cast(def))), static_cast(XML::getFloatProperty( + retval.set(static_cast(XML::getDoubleProperty(propertyNode, "min", + static_cast(def))), static_cast(XML::getDoubleProperty( propertyNode, "max", static_cast(def)))); const std::string change = XML::getProperty( propertyNode, "change-func", "none"); - T amplitude = static_cast(XML::getFloatProperty(propertyNode, + T amplitude = static_cast(XML::getDoubleProperty(propertyNode, "change-amplitude", 0.0)); const int period = XML::getProperty(propertyNode, "change-period", 0); -- cgit v1.2.3-70-g09d2