]> git.mxchange.org Git - simgear.git/commitdiff
s/getChild/getNode/ (otherwise "start/size" wouldn't work)
authormfranz <mfranz>
Sat, 12 Jul 2008 15:31:29 +0000 (15:31 +0000)
committermfranz <mfranz>
Sat, 12 Jul 2008 15:31:29 +0000 (15:31 +0000)
simgear/scene/model/particles.cxx

index ca4cdb6e3071a93fd3081f15a3e577bb1d05f555..df5a160f5473386a57bb2bed3042d56bf4fddbf9 100644 (file)
@@ -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);