Added .osg support for new TexGenNode

This commit is contained in:
Robert Osfield
2004-06-28 15:09:49 +00:00
parent 124f64c55f
commit 0887e22c3f
4 changed files with 72 additions and 2 deletions

View File

@@ -27,10 +27,10 @@ bool ClipNode_readLocalData(Object& obj, Input& fr)
ClipNode& clipnode = static_cast<ClipNode&>(obj);
StateAttribute* sa=0;
osg::ref_ptr<StateAttribute> sa=0;
while((sa=fr.readStateAttribute())!=0)
{
ClipPlane* clipplane = dynamic_cast<ClipPlane*>(sa);
ClipPlane* clipplane = dynamic_cast<ClipPlane*>(sa.get());
if (clipplane) clipnode.addClipPlane(clipplane);
iteratorAdvanced = true;
}