]> git.mxchange.org Git - simgear.git/commitdiff
spt: The bucket size case is already handled above.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Wed, 23 Jan 2013 06:51:18 +0000 (07:51 +0100)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Tue, 29 Jan 2013 06:01:58 +0000 (07:01 +0100)
simgear/scene/tgdb/ReaderWriterSPT.cxx

index 96fbd7097fd9b2043fe255e8d66ecf211e149ec5..2b9f27c6db7360258bee9da8ab58f34ca55aa970 100644 (file)
@@ -257,15 +257,9 @@ ReaderWriterSPT::createPagedLOD(const BucketBox& bucketBox, const osgDB::Options
         pagedLOD->addChild(tile.get(), range, std::numeric_limits<float>::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;