Fruitfly icon indicating copy to clipboard operation
Fruitfly copied to clipboard

While null

Open VladimirCores opened this issue 10 years ago • 0 comments

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

VladimirCores avatar Aug 17 '14 06:08 VladimirCores