Added support for reading and writing osgTerrain objects
This commit is contained in:
@@ -89,6 +89,8 @@
|
||||
|
||||
#include "Text.h"
|
||||
|
||||
#include "Terrain.h"
|
||||
|
||||
#include <osg/Endian>
|
||||
#include <osg/Notify>
|
||||
#include <osg/io_utils>
|
||||
@@ -1451,6 +1453,10 @@ osg::Node* DataInputStream::readNode()
|
||||
node = new osgFX::MultiTextureControl();
|
||||
((ive::MultiTextureControl*)(node))->read(this);
|
||||
}
|
||||
else if(nodeTypeID== IVETERRAIN){
|
||||
node = new osgTerrain::Terrain();
|
||||
((ive::Terrain*)(node))->read(this);
|
||||
}
|
||||
else{
|
||||
throw Exception("Unknown node identification in DataInputStream::readNode()");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user