From f46a6965d27a5d22c19b88165755fa92883a996d Mon Sep 17 00:00:00 2001 From: Jon Neal Date: Mon, 4 Jan 2016 01:03:18 -0500 Subject: [PATCH] Change name prefix in the VRML exporter to one that is allowed in the standards. --- src/Gui/SoFCDB.cpp | 2 ++ 1 file changed, 2 insertions(+) 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