diff --git a/src/osgPlugins/ive/ProxyNode.cpp b/src/osgPlugins/ive/ProxyNode.cpp index 7928f3b13..2d67714c9 100644 --- a/src/osgPlugins/ive/ProxyNode.cpp +++ b/src/osgPlugins/ive/ProxyNode.cpp @@ -129,7 +129,7 @@ void ProxyNode::write(DataOutputStream* out) else { std::string ivename = writeDirectory + osgDB::getStrippedName(getFileName(i)) +".ive"; - if (!out->getExternalFileWritten(getFileName(i))) + if (!out->getExternalFileWritten(ivename)) { osgDB::writeNodeFile(*getChild(i), ivename); out->setExternalFileWritten(ivename, true); diff --git a/src/osgPlugins/osg/ProxyNode.cpp b/src/osgPlugins/osg/ProxyNode.cpp index 83469ca3c..2f953cfe0 100644 --- a/src/osgPlugins/osg/ProxyNode.cpp +++ b/src/osgPlugins/osg/ProxyNode.cpp @@ -250,7 +250,7 @@ bool ProxyNode_writeLocalData(const Object& obj, Output& fw) if (!fw.getExternalFileWritten(origname)) { osgDB::writeNodeFile(*proxyNode.getChild(i), origname); - fw.setExternalFileWritten(proxyNode.getFileName(i), true); + fw.setExternalFileWritten(origname, true); } } else