From 06ff29af096b183ffd8d1442e260e5d0aaa36f2e Mon Sep 17 00:00:00 2001 From: Colin McDonald Date: Mon, 2 Sep 2019 17:43:38 +0100 Subject: [PATCH] Update ReaderWriterOSGA.cpp Fix typo in osga archives which stops node files working --- src/osgPlugins/osga/ReaderWriterOSGA.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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