]> git.mxchange.org Git - simgear.git/commitdiff
Don't waste space with too huge stl containers.
authorfrohlich <frohlich>
Sun, 1 Mar 2009 21:25:48 +0000 (21:25 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 5 Mar 2009 09:32:06 +0000 (10:32 +0100)
Modified Files:
simgear/scene/bvh/BVHStaticGeometryBuilder.hxx

simgear/scene/bvh/BVHStaticGeometryBuilder.hxx

index 88bfd8e49ee934ce4552b7c9eb511baa59e7d6b7..f754c54275fabd214b45ab7772f2fbf7c3476e2a 100644 (file)
@@ -117,6 +117,7 @@ public:
         const BVHStaticNode* tree = buildTreeRecursive(_leafRefList);
         if (!tree)
             return 0;
+        _staticData->trim();
         return new BVHStaticGeometry(tree, _staticData);
     }