diff --git a/src/osgPlugins/ply/ReaderWriterPLY.cpp b/src/osgPlugins/ply/ReaderWriterPLY.cpp index 13686122a..18c21f5a5 100644 --- a/src/osgPlugins/ply/ReaderWriterPLY.cpp +++ b/src/osgPlugins/ply/ReaderWriterPLY.cpp @@ -72,7 +72,7 @@ osgDB::ReaderWriter::ReadResult ReaderWriterPLY::readNode(const std::string& fil //Instance of vertex data which will read the ply file and convert in to osg::Node ply::VertexData vertexData; - osg::Node* node = vertexData.readPlyFile(filename.c_str()); + osg::Node* node = vertexData.readPlyFile(fileName.c_str()); if (node) return node;