Hello all, On 11/19/2010 07:19 AM, David Kabala wrote: > It is my understanding that when the volume of a NodeCore changes that > core needs to tell all parent nodes that it's volume has changed using > invalidateVolume. > > So when you want the parent Nodes of a NodeCore to update their volumes > use something like this: > > void DerivedFromMaterialDrawable::handleVolumeChanged(void) > { > for(UInt32 i(0); i < getParents().size(); ++i) > { > getParents()[i]->invalidateVolume(); > } > }
yes, or save yourself typing the loop each time and call NodeCore::invalidateVolume(), which does exactly that ;) Cheers, Carsten ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users