diff --git a/src/osgPlugins/osga/ReaderWriterOSGA.cpp b/src/osgPlugins/osga/ReaderWriterOSGA.cpp index 9f8111ad9..c5d15db1b 100644 --- a/src/osgPlugins/osga/ReaderWriterOSGA.cpp +++ b/src/osgPlugins/osga/ReaderWriterOSGA.cpp @@ -80,7 +80,6 @@ public: local_options->setDatabasePath(file); - ReadResult result_2; switch (type) { default: case READ_OBJECT: @@ -112,7 +111,7 @@ public: virtual ReadResult readNode(const std::string& file, const Options* options) const { - return readMasterFile(READ_IMAGE, file, options); + return readMasterFile(READ_NODE, file, options); } virtual ReadResult readShader(const std::string& file, const Options* options) const