From 4513709a1b66a66cc2efada4de1d701f35640e27 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 17 Dec 2014 10:19:02 +0000 Subject: [PATCH] From Sukender, "FBX writer was writing an empty file when the scene had a root node being a Geode. This was caused be the change in Drawable (now derived from Node) and Geode (now derived from Group). This fix simply sticks with previous behaviour. Another change could be to adapt WriterNodeVisitor. " git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14608 16af8721-9629-0410-8352-f15c8da7e697 --- src/osgPlugins/fbx/ReaderWriterFBX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/fbx/ReaderWriterFBX.cpp b/src/osgPlugins/fbx/ReaderWriterFBX.cpp index 103753fe2..ba40cfbc4 100644 --- a/src/osgPlugins/fbx/ReaderWriterFBX.cpp +++ b/src/osgPlugins/fbx/ReaderWriterFBX.cpp @@ -37,7 +37,7 @@ bool isBasicRootNode(const osg::Node& node) { const osg::Group* osgGroup = node.asGroup(); - if (!osgGroup) + if (!osgGroup || node.asGeode()) // WriterNodeVisitor handles Geodes the "old way" (= Derived from Node, not Group as for now). Geodes may be considered "basic root nodes" when WriterNodeVisitor will be adapted. { // Geodes & such are not basic root nodes return false;