New issue
 Projects > cocos2d-x > Issues > Bug #2484

cc.TextureAtlas.getTotalQuads() should return _totalQuads instead of array length

Bug #2484 [New]
MadDugan 2013-08-06 03:01 . Updated over 3 years ago

cc.TextureAtlas.getTotalQuads() is returning the relative capacity of the array and not the true total of quads (technically returning the capacity)

Original
CCTextureAtlas.js, line 61-63

getTotalQuads:function () {
    return this._quads.length;
},

Requested change
CCTextureAtlas.js, line 61-63

getTotalQuads:function () {
    return this._totalQuads;
},
MadDugan 2013-08-06 03:03

HTML5

Atom PDF

Status:New
Start date:2013-08-06
Priority:Normal
Due date:
Assignee:-
% Done:

0%

Category:-
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.