Re: [osg-users] [Questio nabout StateSet.cpp] truncated attribute override value?

2015-09-10 Thread Voerman, L.
Hi Julien, it's OFF, the enum for StateAttribute::OFF is 0x0, so anything not ON has value OFF. Regards, Laurens. On Wed, Sep 9, 2015 at 7:45 PM, Julien Valentin wrote: > Hi, > Iwould like to introspect StateSet in order to know which override value > is activated

Re: [osg-users] [Questio nabout StateSet.cpp] truncated attribute override value?

2015-09-10 Thread Robert Osfield
Hi Julien, I don't recall the why and wherefores of this particular bit of code in StateSet.cpp (i.e. line 1662 and associated code) but it's a lng time since I wrote it ;-) My best guess right now is that the ON/OFF for StateAttribute doesn't affect anything, a StateAttribute isn't like a

[osg-users] [Questio nabout StateSet.cpp] truncated attribute override value?

2015-09-09 Thread Julien Valentin
Hi, Iwould like to introspect StateSet in order to know which override value is activated for a particular stateset. I parse AttributeList for this Code: for( osg::StateSet::AttributeList::const_iterator it=ss->getAttributeList().begin();it!=ss->getAttributeList().end() ; it++) {