:: 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
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,
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
3 matches
Mail list logo