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."
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user