Re: [osg-users] Replacing a stateset.

2008-04-05 Thread Guy
:: PROTECTED | StateAttribute::ON? Guy. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alberto Luaces Sent: Thursday, April 03, 2008 9:28 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Replacing a stateset. El Miércoles 02 Abril 2008ES 20:07:53 Dorosky

Re: [osg-users] Replacing a stateset.

2008-04-03 Thread Alberto Luaces
El Miércoles 02 Abril 2008ES 20:07:53 Dorosky, Christopher G escribió: Do I need to do something to clean up the node if it already had a shared stateset? Statesets as the rest of Referenced objects are reference counted, so if the ref_ptr that holds its address is pointed to another Stateset,

[osg-users] Replacing a stateset.

2008-04-02 Thread Dorosky, Christopher G
I've got a strange problem. After loading in model from openflight, I am trying to replace the stateset of some of the nodes. So the code looks like: loop { osg::StateSet *ss = new osg::StateSet; // do some stuff to it node-setStateSet(ss); } If the node already had a stateset, particularly a