From Farshid Lashkari, "I've attached a small fix for the ply loader to support Windows style line endings when reading the header."

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.2@14289 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2014-06-26 09:39:16 +00:00
parent f86acab9b2
commit 1ca2ed9729

View File

@@ -1916,10 +1916,9 @@ char **get_words(FILE *fp, int *nwords, char **orig_line)
*ptr = ' ';
*ptr2 = ' ';
}
else if (*ptr == '\n') {
else if (*ptr == '\n' || *ptr == '\r') {
*ptr = ' ';
*ptr2 = '\0';
break;
}
}