thx Justin, fixed.
On Mar 26, 2011, at 7:51 AM, Justin Patrin wrote:

> I was looking through and it looks like nindv needs to be reset when a
> new subgeometry is set and that induv is being incremented one more
> than it should be.
> 
> Index: src/away3d/tools/MeshHelper.as
> ===================================================================
> --- src/away3d/tools/MeshHelper.as    (revision 3075)
> +++ src/away3d/tools/MeshHelper.as    (working copy)
> @@ -322,6 +322,7 @@
>                                       if(index >= LIMIT ){
>                                               index = 0;
>                                               nind = 0;
> +                                             ninduv = 0;
>                                               nvertices = new 
> Vector.<Number>();
>                                               nindices = new Vector.<uint>();
>                                               nuvs = new Vector.<Number>();
> @@ -332,13 +333,10 @@
>                                       nvertices[index++] = vertices[i+1];
>                                       nvertices[index++] = vertices[i+2];
> 
> -                                     nindices[nind] = indices[ind];
> +                                     nindices[nind++] = indices[ind++];
> 
>                                       nuvs[ninduv++] = uvs[induv++];
>                                       nuvs[ninduv++] = uvs[induv++];
> -                                     
> -                                     ind++;
> -                                     nind++;
> -                                     induv++;
>                               }
> 
>                               for(i=0;i<submeshes.length;i+=3){
> 
> 
> --
> Justin Patrin
> Developer Extraordinaire

Reply via email to