diff --git a/src/osgPlugins/ive/DataInputStream.cpp b/src/osgPlugins/ive/DataInputStream.cpp index 7406014dc..14717d5cf 100644 --- a/src/osgPlugins/ive/DataInputStream.cpp +++ b/src/osgPlugins/ive/DataInputStream.cpp @@ -60,6 +60,7 @@ #include "PolygonStipple.h" +#include "Node.h" #include "Group.h" #include "MatrixTransform.h" #include "Camera.h" @@ -1854,6 +1855,10 @@ osg::Node* DataInputStream::readNode() node = new osgVolume::VolumeTile(); ((ive::VolumeTile*)(node.get()))->read(this); } + else if(nodeTypeID== IVENODE){ + node = new osg::Node(); + ((ive::Node*)(node.get()))->read(this); + } else{ throwException("Unknown node identification in DataInputStream::readNode()"); } diff --git a/src/osgPlugins/ive/DataOutputStream.cpp b/src/osgPlugins/ive/DataOutputStream.cpp index ad79a6ff7..fc9d7cd54 100644 --- a/src/osgPlugins/ive/DataOutputStream.cpp +++ b/src/osgPlugins/ive/DataOutputStream.cpp @@ -62,6 +62,7 @@ #include "Light.h" #include "PolygonStipple.h" +#include "Node.h" #include "Group.h" #include "MatrixTransform.h" #include "Camera.h" @@ -1411,7 +1412,13 @@ void DataOutputStream::writeNode(const osg::Node* node) } else { - OSG_WARN<<"Unknown node in Group::write(), className()="<className()<