+ fixes #0001363: VRML export can produce corrupt files

This commit is contained in:
wmayer
2014-12-02 15:40:36 +01:00
parent f5a4e68068
commit 351ad4f6c7
5 changed files with 94 additions and 0 deletions

View File

@@ -1041,6 +1041,8 @@ bool View3DInventorViewer::dumpToFile(const char* filename, bool binary) const
if (fi.hasExtension("wrz"))
binary = true;
SoVRMLAction vrml2;
vrml2.apply(pcViewProviderRoot);
SoToVRML2Action tovrml2;
tovrml2.apply(pcViewProviderRoot);
SoVRMLGroup* vrmlRoot = tovrml2.getVRML2SceneGraph();