diff --git a/src/Gui/SoFCDB.cpp b/src/Gui/SoFCDB.cpp index 4ee13e443..8ed103996 100644 --- a/src/Gui/SoFCDB.cpp +++ b/src/Gui/SoFCDB.cpp @@ -26,6 +26,7 @@ # include # include # include +# include #endif #include @@ -217,6 +218,7 @@ bool Gui::SoFCDB::writeToVRML(SoNode* node, const char* filename, bool binary) SoToVRML2Action tovrml2; tovrml2.apply(node); SoVRMLGroup* vrmlRoot = tovrml2.getVRML2SceneGraph(); + vrmlRoot->setInstancePrefix(SbString("o")); vrmlRoot->ref(); std::string buffer = SoFCDB::writeNodesToString(vrmlRoot); vrmlRoot->unref(); // release the memory as soon as possible