Corrected again the constructor of the base trimesh. Now it simply call the clear (just to enforce same behaviour)

This commit is contained in:
Paolo Cignoni 2011-05-11 09:54:05 +00:00
parent f7abd17dfe
commit 3bb7e7bdd9
1 changed files with 6 additions and 4 deletions

View File

@ -323,10 +323,7 @@ public:
/// Default constructor
TriMesh()
{
fn = en = vn = 0;
imark = 0;
attrn = 0;
C()=Color4b::Gray;
Clear();
}
/// destructor
@ -372,10 +369,15 @@ void Clear()
{
vert.clear();
face.clear();
edge.clear();
// textures.clear();
// normalmaps.clear();
vn = 0;
en = 0;
fn = 0;
imark = 0;
attrn = 0;
C()=Color4b::Gray;
}
/// Reflection functions that speak about vertex and face properties.