From a9bc44f7eb2981099488d60a187510207871a0d7 Mon Sep 17 00:00:00 2001 From: konstin Date: Sun, 21 Sep 2014 19:30:07 +0200 Subject: [PATCH] fix cleaning of transparent meshes and close #1522 --- src/graphics/stkanimatedmesh.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphics/stkanimatedmesh.cpp b/src/graphics/stkanimatedmesh.cpp index d094ac4e8..40b29437a 100644 --- a/src/graphics/stkanimatedmesh.cpp +++ b/src/graphics/stkanimatedmesh.cpp @@ -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)