]> git.mxchange.org Git - simgear.git/commitdiff
Give the models properties as an argument to the init callback.
authorfrohlich <frohlich>
Fri, 22 May 2009 14:53:57 +0000 (14:53 +0000)
committerTim Moore <timoore@redhat.com>
Tue, 2 Jun 2009 22:08:04 +0000 (00:08 +0200)
Modified Files:
  SGPagedLOD.cxx

simgear/scene/model/SGPagedLOD.cxx

index 8debb8d15cc482dc0eaefb46b83c8bcc42956f97..541c635085e8ad1858ad49f50fa092cb509706bc 100644 (file)
@@ -56,7 +56,8 @@ bool SGPagedLOD::addChild(osg::Node *child)
     {
         osg::ref_ptr<SGModelData> d = opts->getModelData();
         if(d.valid())
-            d->modelLoaded(getFileName(getNumChildren()-1), 0, this);
+            d->modelLoaded(getFileName(getNumChildren()-1), d->getProperties(),
+                           this);
     }
     return true;
 }