From a00bf751bed85093b46ffc833eb45dc8c5a163ff Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 25 Nov 2005 10:23:27 +0000 Subject: [PATCH] Added safe zero initialization of index of wedge texture --- wrap/io_trimesh/import_ply.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wrap/io_trimesh/import_ply.h b/wrap/io_trimesh/import_ply.h index 96311da2..b03c0be5 100644 --- a/wrap/io_trimesh/import_ply.h +++ b/wrap/io_trimesh/import_ply.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.18 2005/11/23 16:59:55 callieri +corrected protected access methods (camera, similarity) of shot + Revision 1.17 2005/11/12 18:13:30 cignoni Added support for non triangular faces (simple fan triangulation) and removed flags intiailization. @@ -646,6 +649,7 @@ static int Open( OpenMeshType &m, const char * filename, PlyInfo &pi ) (*fi).WT(k).u() = fa.tcoord[k*2+0]; (*fi).WT(k).v() = fa.tcoord[k*2+1]; if(multit) (*fi).WT(k).n() = fa.tcoordind; + else (*fi).WT(k).n()=0; // safely intialize texture index } }