CCBReader
CCBReader copied to clipboard
Opacity Setting is incorrect.
CCBReader Version: #define kCCBVersion 5
Found a small bug of CCScale9Sprite when working the
Before bugfix:
- (void) updateWithBatchNode:(CCSpriteBatchNode *)batchnode rect:(CGRect)rect rotated:(BOOL)rotated capInsets:(CGRect)capInsets
{
GLubyte opacity = opacity; // opacity is always zero
......
}
After
- (void) updateWithBatchNode:(CCSpriteBatchNode *)batchnode rect:(CGRect)rect rotated:(BOOL)rotated capInsets:(CGRect)capInsets
{
GLubyte opacity = self.opacity; // opacity is assigned
......
}