From 1c3b2d2285ad4d8d6862f8068f74c80d693329dc Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 10 Jan 2019 09:45:32 +0000 Subject: [PATCH] Added read/writeObject() entry point to FBX plugin. --- src/osgPlugins/fbx/ReaderWriterFBX.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/osgPlugins/fbx/ReaderWriterFBX.h b/src/osgPlugins/fbx/ReaderWriterFBX.h index 99853470c..7cb5c0270 100644 --- a/src/osgPlugins/fbx/ReaderWriterFBX.h +++ b/src/osgPlugins/fbx/ReaderWriterFBX.h @@ -28,6 +28,16 @@ public: const char* className() const { return "FBX reader/writer"; } + virtual ReadResult readObject(const std::string& filename, const Options* options) const + { + return readNode(filename, options); + } + + virtual WriteResult writObject(const osg::Node& node, const std::string& filename, const Options* options) const + { + return writeNode(node, filename, options); + } + virtual ReadResult readNode(const std::string& filename, const Options*) const; virtual WriteResult writeNode(const osg::Node&, const std::string& filename, const Options*) const; };