From Gustav Happalahti, fixed filename usage
This commit is contained in:
parent
3171be0ff7
commit
150c2e5fa1
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user