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

@@ -59,6 +59,7 @@
#include "Multisample.h"
#include "Fog.h"
#include "Light.h"
#include "PolygonStipple.h"
#include "Group.h"
#include "MatrixTransform.h"
@@ -1089,6 +1090,10 @@ void DataOutputStream::writeStateAttribute(const osg::StateAttribute* attribute)
else if(dynamic_cast<const osg::Light*>(attribute)){
((ive::Light*)(attribute))->write(this);
}
// This is a PolygonStipple
else if(dynamic_cast<const osg::PolygonStipple*>(attribute)){
((ive::PolygonStipple*)(attribute))->write(this);
}
else{
std::string className = attribute->className();