Added suport for osgSim::MultiSwitch to .ive plugin

This commit is contained in:
Robert Osfield
2003-11-25 16:28:32 +00:00
parent 953bbd85e8
commit d20f93d78a
5 changed files with 22 additions and 1 deletions

View File

@@ -41,7 +41,9 @@
#include "Switch.h"
#include "OccluderNode.h"
#include "Impostor.h"
#include "LightPointNode.h"
#include "MultiSwitch.h"
#include "Geometry.h"
@@ -668,6 +670,10 @@ osg::Node* DataInputStream::readNode()
node = new osg::Switch();
((ive::Switch*)(node))->read(this);
}
else if(nodeTypeID== IVEMULTISWITCH){
node = new osgSim::MultiSwitch();
((ive::MultiSwitch*)(node))->read(this);
}
else if(nodeTypeID== IVEIMPOSTOR){
node = new osg::Impostor();
((ive::Impostor*)(node))->read(this);