From e376e9b0e0a366f5dddfd28e27f8b938521a65c4 Mon Sep 17 00:00:00 2001
From: till busch <buti@bux.at>
Date: Sat, 22 Mar 2008 09:25:19 +0100
Subject: [PATCH] modelpaging v0.4.4.2 (incremetal) - simgear
nit-picking cosmetics
---
 simgear/scene/model/SGPagedLOD.cxx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/simgear/scene/model/SGPagedLOD.cxx b/simgear/scene/model/SGPagedLOD.cxx
index 5158cfc..ee68b49 100644
--- a/simgear/scene/model/SGPagedLOD.cxx
+++ b/simgear/scene/model/SGPagedLOD.cxx
@@ -49,7 +49,7 @@ bool SGPagedLOD::addChild(osg::Node *child)
 
     // if the model was an .xml-file it will have UserData set
     osg::ref_ptr<SGModelData> d = dynamic_cast<SGModelData*>(child->getUserData());
-    if (d.get())
+    if (d.valid())
         d->modelLoaded(getFileName(getNumChildren()-1), d->getProperties(), this);
     else // this calls modelLoaded for non-xml models
     {
@@ -57,7 +57,7 @@ bool SGPagedLOD::addChild(osg::Node *child)
         if(o)
         {
             d = o->getModelData();
-            if(d.get())
+            if(d.valid())
                 d->modelLoaded(getFileName(getNumChildren()-1), 0, this);
         }
     }
-- 
1.5.2.5


