From Luc Frauciel, You'll find attached a modification in ive plugin for POLYGONSTIPPLE read/write.

This commit is contained in:
Robert Osfield
2009-03-23 17:08:58 +00:00
parent 9727321afe
commit 73bf2a7de9
6 changed files with 82 additions and 0 deletions

View File

@@ -56,6 +56,7 @@
#include "Multisample.h"
#include "Fog.h"
#include "Light.h"
#include "PolygonStipple.h"
#include "Group.h"
@@ -1411,6 +1412,10 @@ osg::StateAttribute* DataInputStream::readStateAttribute()
attribute = new osg::Light();
((ive::Light*)(attribute))->read(this);
}
else if(attributeID == IVEPOLYGONSTIPPLE){
attribute = new osg::PolygonStipple();
((ive::PolygonStipple*)(attribute))->read(this);
}
else{
throw Exception("Unknown StateAttribute in StateSet::read()");
}