From ddf75dd249e659123e74054a4d0fe19c165bebe9 Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 21 Jun 2006 04:26:26 +0000 Subject: [PATCH] added initial test on end of file in the tokenize --- wrap/io_trimesh/import_obj.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wrap/io_trimesh/import_obj.h b/wrap/io_trimesh/import_obj.h index 04492544..3a218688 100644 --- a/wrap/io_trimesh/import_obj.h +++ b/wrap/io_trimesh/import_obj.h @@ -25,6 +25,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.6 2006/05/21 07:01:04 cignoni +Added mask clamping to the effective capabilities of the mesh + Revision 1.5 2006/04/11 09:48:00 zifnab1974 changes needed for compilation on linux 64b with gcc 3.4.5 @@ -776,6 +779,7 @@ static int Open( OpenMeshType &m, const char * filename, Info &oi) */ inline static const void TokenizeNextLine(std::ifstream &stream, std::vector< std::string > &tokens) { + if(stream.eof()) return; std::string line; do std::getline(stream, line, '\n');