Added fin.imbue(std::locale::classic()); to avoid problems with parsing of .obj files

This commit is contained in:
Robert Osfield 2012-02-27 09:50:47 +00:00
parent e8ac276451
commit 1a080dfa6a

View File

@ -887,6 +887,8 @@ osgDB::ReaderWriter::ReadResult ReaderWriterOBJ::readNode(std::istream& fin, con
{ {
if (fin) if (fin)
{ {
fin.imbue(std::locale::classic());
obj::Model model; obj::Model model;
model.readOBJ(fin, options); model.readOBJ(fin, options);