From 6ec5d80b0d38234e00a7ba220bc2f2083bc225a8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 26 May 2016 18:07:46 +0100 Subject: [PATCH] From Wee See, "attached a small submission, which makes the option "readObjectRecordData" of OpenFlight-plugin working like documented in the Knowledge Base of OSG (52-using-the-openflight-plugin). Actually, if the option "readObjectRecordData" is set, ObjectRecordData will not be read and set. With this submission, if the option "readObjectRecordData" is set, ObjectRecordData will be read and set." --- src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp b/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp index d19714827..912b3f4d8 100644 --- a/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp +++ b/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp @@ -374,8 +374,8 @@ class FLTReaderWriter : public ReaderWriter document.setUseTextureAlphaForTransparancyBinning(options->getOptionString().find("noTextureAlphaForTransparancyBinning")==std::string::npos); OSG_DEBUG << readerMsg << "noTextureAlphaForTransparancyBinning=" << !document.getUseTextureAlphaForTransparancyBinning() << std::endl; - document.setReadObjectRecordData(options->getOptionString().find("readObjectRecordData")==std::string::npos); - OSG_DEBUG << readerMsg << "readObjectRecordData=" << !document.getReadObjectRecordData() << std::endl; + document.setReadObjectRecordData(options->getOptionString().find("readObjectRecordData")!=std::string::npos); + OSG_DEBUG << readerMsg << "readObjectRecordData=" << document.getReadObjectRecordData() << std::endl; document.setPreserveNonOsgAttrsAsUserData((options->getOptionString().find("preserveNonOsgAttrsAsUserData")!=std::string::npos)); OSG_DEBUG << readerMsg << "preserveNonOsgAttrsAsUserData=" << document.getPreserveNonOsgAttrsAsUserData() << std::endl;