[Papervision3D] Dictionnary Class usage in PV3D framework
azupko at zupko.info
Tue Nov 4 18:28:57 PST 2008
If you call destroy on your material it shoudl remove references from
the MatManager. Materials are not destroyed when you remove a do3d
from the scene as they can be used multiple places.
On Nov 4, 2008, at 7:36 PM, iiley wrote:
> For my experience myDictionnary[ anObject ] = anObject will make the
> anObject have no chance to be GCed untill "delete
> myDictionnary[ anObject ]; or myDictionnary[ anObject ] = null" is
> I'm not familiar with PV3D, i guess the _registerMaterial is intent
> to collect the alive Materials, but doesn't want to add references
> to them, if it is, maybe just
> private function _registerMaterial(material:MaterialObject3D):void
> materials[material] = null;
> is enough.
> When you want to iterate all the collected Materials, for(var m in
> materials) will works.
> AsWing http://www.aswing.org
> Personal http://www.iiley.com
> Papervision3D mailing list
> Papervision3D at osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Papervision3D