Added initialization of tex index in the constructor of texcoord
This commit is contained in:
parent
2e22f9b51d
commit
044412a099
|
@ -49,7 +49,7 @@ private:
|
||||||
short _n[NMAX];
|
short _n[NMAX];
|
||||||
public:
|
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() { };
|
TexCoord2() { };
|
||||||
|
|
||||||
inline const PointType &P() const { return _t[0]; };
|
inline const PointType &P() const { return _t[0]; };
|
||||||
|
|
Loading…
Reference in New Issue