]> git.mxchange.org Git - simgear.git/commitdiff
Provide something more sensible for the properties root
authorfrohlich <frohlich>
Sun, 7 Jun 2009 11:30:12 +0000 (11:30 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 11 Jun 2009 13:55:11 +0000 (15:55 +0200)
for the modelLoaded call. MAy be this needs to be revisited, but in any
case better than constant zero.

Modified Files:
  simgear/scene/model/SGPagedLOD.cxx
simgear/scene/model/modellib.cxx

simgear/scene/model/SGPagedLOD.cxx
simgear/scene/model/modellib.cxx

index 96a0656d49917878d3dca908b0004f4db57a9c75..545aadb72b91e8d38833ba11731db8dded3d4a3c 100644 (file)
@@ -56,7 +56,7 @@ bool SGPagedLOD::addChild(osg::Node *child)
     {
         osg::ref_ptr<SGModelData> d = opts->getModelData();
         if(d.valid())
-            d->modelLoaded(getFileName(getNumChildren()-1), 0,
+            d->modelLoaded(getFileName(getNumChildren()-1), opts->getPropRoot(),
                            this);
     }
     return true;
index 9564435156bb44d66b72a83ab8ff44cf071388b3..3fbced89ba4e846478654b22c727bbb9817b17e0 100644 (file)
@@ -67,7 +67,7 @@ SGModelLib::loadModel(const string &path,
     opt->setModelData(data);
     osg::Node *n = readNodeFile(path, opt.get());
     if(data)
-        data->modelLoaded(path, 0, n);
+        data->modelLoaded(path, prop_root, n);
     if (n && n->getName().empty())
         n->setName("Direct loaded model \"" + path + "\"");
     return n;