Added explict setting of local to classic to avoid local platform settings affecting parsing

This commit is contained in:
Robert Osfield 2020-01-17 08:54:52 +00:00
parent aebc71a113
commit 396cfca1ae

View File

@ -952,6 +952,7 @@ osgDB::ReaderWriter::ReadResult ReaderWriterOBJ::readNode(const std::string& fil
osgDB::ifstream fin(fileName.c_str());
if (fin)
{
fin.imbue(std::locale::classic());
// code for setting up the database path so that internally referenced file are searched for on relative paths.
osg::ref_ptr<Options> local_opt = options ? static_cast<Options*>(options->clone(osg::CopyOp::SHALLOW_COPY)) : new Options;