Make use of SGReaderWriterOptions::copyOrCreate in ReaderWriterSTG.
This commit is contained in:
@@ -297,13 +297,8 @@ TileEntry::loadTileByFileName(const string& fileName,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const SGReaderWriterOptions* btgOpt;
|
|
||||||
btgOpt = dynamic_cast<const SGReaderWriterOptions*>(options);
|
|
||||||
osg::ref_ptr<SGReaderWriterOptions> opt;
|
osg::ref_ptr<SGReaderWriterOptions> opt;
|
||||||
if (btgOpt)
|
opt = SGReaderWriterOptions::copyOrCreate(options);
|
||||||
opt = new SGReaderWriterOptions(*btgOpt);
|
|
||||||
else
|
|
||||||
opt = new SGReaderWriterOptions;
|
|
||||||
|
|
||||||
// obj_load() will generate ground lighting for us ...
|
// obj_load() will generate ground lighting for us ...
|
||||||
osg::Group* new_tile = new osg::Group;
|
osg::Group* new_tile = new osg::Group;
|
||||||
|
|||||||
Reference in New Issue
Block a user