Fruitfly
Fruitfly copied to clipboard
While null
I find a mistake inside your code TextureAtlasCollection.as line 100 for each( item in items ) { rect = root.insert( item ); trace("\t generateAtlas items: ", item); trace("\t generateAtlas rect: ", rect); while( !rect ) { var newNode : TextureNode = new TextureNode( bitmapPadding ); newNode.rect = new Rectangle( 0, 0, width, height ); textureNodes.push( newNode ); var newRoot : SubTextureNode = new SubTextureNode( bitmapPadding ); newRoot.left = root; newRoot.right = newNode; root = newRoot; rect = root.insert( item ); trace("\t generateAtlas rect after: ", rect); } }
the "rect" may become null and cycle become infinite that crash application. Don't know why it's happen at now i try to fix it by myself