From 044412a099838d676e31d718ecf4f9c302360b05 Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 16 Jun 2010 10:27:38 +0000 Subject: [PATCH] Added initialization of tex index in the constructor of texcoord --- vcg/space/texcoord2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/space/texcoord2.h b/vcg/space/texcoord2.h index ab68a5d5..94b9c7da 100644 --- a/vcg/space/texcoord2.h +++ b/vcg/space/texcoord2.h @@ -49,7 +49,7 @@ private: short _n[NMAX]; public: - TexCoord2(T u, T v) { _t[0][0]=u; _t[0][1]=v; }; + TexCoord2(T u, T v) { if(NMAX>0) _n[0]=0; _t[0][0]=u; _t[0][1]=v; }; TexCoord2() { }; inline const PointType &P() const { return _t[0]; };