From 01c64fd554ac346b6de3c12067293f631d81548c Mon Sep 17 00:00:00 2001 From: frohlich Date: Fri, 22 May 2009 14:53:57 +0000 Subject: [PATCH] Give the models properties as an argument to the init callback. Modified Files: SGPagedLOD.cxx --- simgear/scene/model/SGPagedLOD.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5