|
From: Scott <sc...@gm...> - 2019-08-27 00:18:35
|
Hi Richard,
In fgviewer.cxx, there is a compiler directive for
osgDB::readRefNodeFile, which I don't think we need.
Since osgDB::readRefNodeFile was added in OSG 2.3.0, and we require
3.2.0 as a minimum, can we just remove the compiler directive to always
use the readRefNodeFile method?
Does this SPT file even still exist?
readRefNodeFile(s) wasn't added until 3.4.1 so no issue with that.
osg::ref_ptr<osg::Node>loadedModel;
if(1<arguments.argc()) {
// read the scene from the list of file specified command line args.
#ifOSG_VERSION_LESS_THAN(3,4,1)
loadedModel =osgDB::readNodeFiles(arguments, options.get());
#else
loadedModel =osgDB::readRefNodeFiles(arguments, options.get());
#endif
} else{
// if no arguments given resort to the whole world scenery
options->setPluginStringData("SimGear::FG_EARTH", "ON");
#ifOSG_VERSION_LESS_THAN(3,4,0)
loadedModel =osgDB::readNodeFile("w180s90-360x180.spt", options.get());
#else
loadedModel =osgDB::readRefNodeFile("w180s90-360x180.spt", options.get());
#endif
}
|