From: frohlich Date: Fri, 22 May 2009 14:53:57 +0000 (+0000) Subject: Give the models properties as an argument to the init callback. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=01c64fd554ac346b6de3c12067293f631d81548c;p=simgear.git Give the models properties as an argument to the init callback. Modified Files: SGPagedLOD.cxx --- diff --git a/simgear/scene/model/SGPagedLOD.cxx b/simgear/scene/model/SGPagedLOD.cxx index 8debb8d1..541c6350 100644 --- a/simgear/scene/model/SGPagedLOD.cxx +++ b/simgear/scene/model/SGPagedLOD.cxx @@ -56,7 +56,8 @@ bool SGPagedLOD::addChild(osg::Node *child) { osg::ref_ptr d = opts->getModelData(); if(d.valid()) - d->modelLoaded(getFileName(getNumChildren()-1), 0, this); + d->modelLoaded(getFileName(getNumChildren()-1), d->getProperties(), + this); } return true; }