Skip to content

处理多处使用同一资源 导致重复addSpriteFrames #2441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2014

Conversation

duhaibo0404
Copy link
Contributor

如果在一个csb文件里 使用一个plist文件多次 会导致 buffer["textures"].length过大
导致重复cc.spriteFrameCache.addSpriteFrames();

如果在一个csb文件里 使用一个plist文件多次 会导致 buffer["textures"].length过大 
导致重复cc.spriteFrameCache.addSpriteFrames();
@pandamicro
Copy link
Contributor

@VisualSJ Please review it

@VisualSJ
Copy link
Contributor

VisualSJ commented Nov 7, 2014

This is a negligence when writing code. ^_^
@duhaibo0404 Thanks for you code.

This PR can be combined. @dingpinglv

dingpinglv added a commit that referenced this pull request Nov 7, 2014
处理多处使用同一资源 导致重复addSpriteFrames
@dingpinglv dingpinglv merged commit 3cba083 into cocos2d:develop Nov 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants