[Papervision3D] Dictionnary Class usage in PV3D framework

Andy Zupko 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  
> called.
>
> 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.
>
>
> -- 
> iiley
> AsWing http://www.aswing.org
> Personal http://www.iiley.com
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20081104/cd0feea5/attachment.html>


More information about the Papervision3D mailing list