From eb061d9acc4f048ab2913af66afb8e0a35b5c6d7 Mon Sep 17 00:00:00 2001 From: Andreas Ekstrand Date: Sat, 11 Nov 2017 10:19:09 +0000 Subject: [PATCH] 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. --- src/osgPlugins/lwo/ReaderWriterLWO.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/osgPlugins/lwo/ReaderWriterLWO.cpp b/src/osgPlugins/lwo/ReaderWriterLWO.cpp index 5bd5b08f2..779bf7c34 100644 --- a/src/osgPlugins/lwo/ReaderWriterLWO.cpp +++ b/src/osgPlugins/lwo/ReaderWriterLWO.cpp @@ -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);