TriMesh virtual destructor and fix TriMesh clean

This commit is contained in:
alemuntoni 2021-07-09 12:23:05 +02:00
parent 735f93c256
commit fdabe1aead
1 changed files with 4 additions and 3 deletions

View File

@ -443,7 +443,7 @@ public:
}
/// destructor
~TriMesh()
virtual ~TriMesh()
{
// ClearAttributes();
Clear();
@ -481,13 +481,14 @@ public:
face.clear();
edge.clear();
tetra.clear();
// textures.clear();
// normalmaps.clear();
textures.clear();
normalmaps.clear();
vn = 0;
en = 0;
fn = 0;
hn = 0;
tn = 0;
attrn = 0;
imark = 0;
C()=Color4b::Gray;
}