|
@@ -89,12 +89,13 @@ void X3DImporter::ParseNode_Networking_Inline()
|
|
|
|
|
|
if(load && (url.size() > 0))
|
|
|
{
|
|
|
- DefaultIOSystem io_handler;
|
|
|
std::string full_path;
|
|
|
|
|
|
- full_path = mFileDir + "/" + url.front();
|
|
|
+ full_path = mpIOHandler->CurrentDirectory() + "/" + url.front();
|
|
|
// Attribute "url" can contain list of strings. But we need only one - first.
|
|
|
- ParseFile(full_path, &io_handler);
|
|
|
+ mpIOHandler->PushDirectory(DefaultIOSystem::absolutePath(full_path));
|
|
|
+ ParseFile(full_path, mpIOHandler);
|
|
|
+ mpIOHandler->PopDirectory();
|
|
|
}
|
|
|
|
|
|
// check for X3DMetadataObject childs.
|