fix cleaning of transparent meshes and close #1522

This commit is contained in:
konstin 2014-09-21 19:30:07 +02:00
parent 0dc3854df1
commit a9bc44f7eb

View File

@ -46,6 +46,8 @@ void STKAnimatedMesh::cleanGLMeshes()
GLmeshes.clear();
for (unsigned i = 0; i < MAT_COUNT; i++)
MeshSolidMaterial[i].clearWithoutDeleting();
for (unsigned i = 0; i < TM_COUNT; i++)
TransparentMesh[i].clearWithoutDeleting();
}
void STKAnimatedMesh::setMesh(scene::IAnimatedMesh* mesh)