I have implemented readObject to make loading objects from SceneLoader in the LWS plugin work. I'm not sure about other implications from changes leading up to this problem (readRefFile instead of readNodeFile in SceneLoader) but this fix works for me.

This commit is contained in:
Andreas Ekstrand
2017-11-11 10:19:09 +00:00
committed by Robert Osfield
parent dfec052eb9
commit eb061d9acc

View File

@@ -56,6 +56,11 @@ public:
virtual const char* className() const { return "Lightwave Object Reader"; }
virtual ReadResult readObject(const std::string& file, const osgDB::ReaderWriter::Options* options) const
{
return readNode(file, options);
}
virtual ReadResult readNode(const std::string& file, const osgDB::ReaderWriter::Options* options) const
{
std::string ext = osgDB::getLowerCaseFileExtension(file);