From 4db05e97c5f295f8d9c4f4e7f57a2241e58246c4 Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Wed, 23 Jan 2013 07:51:18 +0100 Subject: [PATCH] spt: The bucket size case is already handled above. --- simgear/scene/tgdb/ReaderWriterSPT.cxx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/simgear/scene/tgdb/ReaderWriterSPT.cxx b/simgear/scene/tgdb/ReaderWriterSPT.cxx index 96fbd709..2b9f27c6 100644 --- a/simgear/scene/tgdb/ReaderWriterSPT.cxx +++ b/simgear/scene/tgdb/ReaderWriterSPT.cxx @@ -257,15 +257,9 @@ ReaderWriterSPT::createPagedLOD(const BucketBox& bucketBox, const osgDB::Options pagedLOD->addChild(tile.get(), range, std::numeric_limits::max()); // Add the paged file name that creates the subtrees on demand - if (bucketBox.getIsBucketSize()) { - std::string fileName; - fileName = bucketBox.getBucket().gen_index_str() + std::string(".stg"); - pagedLOD->setFileName(pagedLOD->getNumChildren(), fileName); - } else { - std::stringstream ss; - ss << bucketBox << ".spt"; - pagedLOD->setFileName(pagedLOD->getNumChildren(), ss.str()); - } + std::stringstream ss; + ss << bucketBox << ".spt"; + pagedLOD->setFileName(pagedLOD->getNumChildren(), ss.str()); pagedLOD->setRange(pagedLOD->getNumChildren(), 0.0, range); return pagedLOD; -- 2.39.5