From: mfranz Date: Sat, 12 Jul 2008 15:31:29 +0000 (+0000) Subject: s/getChild/getNode/ (otherwise "start/size" wouldn't work) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=315d83bc887b55f2ee0ad3de56e9ae8d70b63ee3;p=simgear.git s/getChild/getNode/ (otherwise "start/size" wouldn't work) --- diff --git a/simgear/scene/model/particles.cxx b/simgear/scene/model/particles.cxx index ca4cdb6e..df5a160f 100644 --- a/simgear/scene/model/particles.cxx +++ b/simgear/scene/model/particles.cxx @@ -366,14 +366,14 @@ osg::Group * Particles::appendParticles(const SGPropertyNode* configNode, osg::Vec4(r2,g2,b2,a2))); float startsize=1, endsize=0.1f; - const SGPropertyNode* startsizenode = particlenode->getChild("start/size"); + const SGPropertyNode* startsizenode = particlenode->getNode("start/size"); if (startsizenode) { if (startsizenode->hasValue("value")) startsize = startsizenode->getFloatValue("value",0); else callback()->setupStartSizeData(startsizenode, modelRoot); } - const SGPropertyNode* endsizenode = particlenode->getChild("end/size"); + const SGPropertyNode* endsizenode = particlenode->getNode("end/size"); if (endsizenode) { if (endsizenode->hasValue("value")) endsize = endsizenode->getFloatValue("value",0);