resolved issue related to the parsing of CR LF under *nixes
This commit is contained in:
parent
5624d54730
commit
f69f481085
|
@ -25,6 +25,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.13 2007/04/18 07:01:26 cignoni
|
||||||
|
Added managment of map_Ka textures (and not only map_Kd)
|
||||||
|
|
||||||
Revision 1.12 2006/12/21 00:36:17 cignoni
|
Revision 1.12 2006/12/21 00:36:17 cignoni
|
||||||
Removed a bug in the managment of non triangular faces
|
Removed a bug in the managment of non triangular faces
|
||||||
|
|
||||||
|
@ -595,12 +598,12 @@ static int Open( OpenMeshType &m, const char * filename, Info &oi)
|
||||||
tokens.clear();
|
tokens.clear();
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
while (from!=length && (line[from]==' ' || line[from]=='\t') )
|
while (from!=length && (line[from]==' ' || line[from]=='\t' || line[from]=='\r') )
|
||||||
from++;
|
from++;
|
||||||
if(from!=length)
|
if(from!=length)
|
||||||
{
|
{
|
||||||
to = from+1;
|
to = from+1;
|
||||||
while (to!=length && line[to]!=' ')
|
while (to!=length && line[to]!=' ' && line[to]!='\r')
|
||||||
to++;
|
to++;
|
||||||
tokens.push_back(line.substr(from, to-from).c_str());
|
tokens.push_back(line.substr(from, to-from).c_str());
|
||||||
from = to;
|
from = to;
|
||||||
|
|
Loading…
Reference in New Issue