diff --git a/src/osgPlugins/ply/plyfile.cpp b/src/osgPlugins/ply/plyfile.cpp index c59caa95d..5754464c3 100644 --- a/src/osgPlugins/ply/plyfile.cpp +++ b/src/osgPlugins/ply/plyfile.cpp @@ -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; } }