Fixed handling of write and reading of straight Node objects in the scene graph.
This commit is contained in:
@@ -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()");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user