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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user