TextureMaterial.dispose disposes all TextureMaterials

Software: Away3D 4.x

Guido, Member
Posted: 08 May 2012 09:49 AM   Total Posts: 70

Hi,

i’m using 2 meshes with multiple submeshes. each of them has a material. the material is a color material or a texture material. when i load my model from PHP again i first have to clear one of the two meshes. so i clear all the materials of the mesh and the submeshes and the mesh itself. if i dont do this i have a memoryleak.

the problem is: if one of the materials is a texture material all texture materials of the other mesh are disposed two and only the texture materials, not the color materials.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X