From eabffece1f6f31766faf1940a57b1bed58cbb951 Mon Sep 17 00:00:00 2001 From: frohlich Date: Sun, 1 Mar 2009 21:25:48 +0000 Subject: [PATCH] Don't waste space with too huge stl containers. Modified Files: simgear/scene/bvh/BVHStaticGeometryBuilder.hxx --- simgear/scene/bvh/BVHStaticGeometryBuilder.hxx | 1 + 1 file changed, 1 insertion(+) diff --git a/simgear/scene/bvh/BVHStaticGeometryBuilder.hxx b/simgear/scene/bvh/BVHStaticGeometryBuilder.hxx index 88bfd8e4..f754c542 100644 --- a/simgear/scene/bvh/BVHStaticGeometryBuilder.hxx +++ b/simgear/scene/bvh/BVHStaticGeometryBuilder.hxx @@ -117,6 +117,7 @@ public: const BVHStaticNode* tree = buildTreeRecursive(_leafRefList); if (!tree) return 0; + _staticData->trim(); return new BVHStaticGeometry(tree, _staticData); } -- 2.39.5