]> git.mxchange.org Git - simgear.git/commitdiff
Propagate the lanel loader through the options.
authorfrohlich <frohlich>
Tue, 23 Jun 2009 20:26:26 +0000 (20:26 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 25 Jun 2009 08:13:02 +0000 (10:13 +0200)
Modified Files:
simgear/scene/model/SGReaderWriterXML.cxx

simgear/scene/model/SGReaderWriterXML.cxx

index 00c113be0f8b2dfd4eae584ab8db99d789a80a7e..e9020407644134af8bf9e0ade487edc93da33e08 100644 (file)
@@ -169,7 +169,9 @@ sgLoad3DModel_internal(const string &path,
     }
 
     osg::ref_ptr<SGReaderWriterXMLOptions> options
-    = new SGReaderWriterXMLOptions(*osgDB::Registry::instance()->getOptions());
+    = new SGReaderWriterXMLOptions(*options_);
+    options->setPropRoot(prop_root);
+    options->setLoadPanel(load_panel);
 
     // Assume that textures are in
     // the same location as the XML file.
@@ -230,6 +232,7 @@ sgLoad3DModel_internal(const string &path,
         osg::ref_ptr<SGReaderWriterXMLOptions> options;
         options = new SGReaderWriterXMLOptions(*options_);
         options->setPropRoot(prop_root);
+        options->setLoadPanel(load_panel);
         try {
             submodel = sgLoad3DModel_internal(submodelpath.str(), options.get(),
                                               sub_props->getNode("overlay"));