From Gustav Happalahti, fixed filename usage

This commit is contained in:
Robert Osfield 2009-06-09 08:43:13 +00:00
parent 3171be0ff7
commit 150c2e5fa1
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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