Skip to content

Commit

Permalink
Merge pull request cocos#23 from 2youyou2/v2.3.0-groupIndex
Browse files Browse the repository at this point in the history
fixed cc.Node.groupIndex serialization
  • Loading branch information
2youyou2 authored Jul 1, 2019
2 parents 789e31d + e242477 commit ee71903
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cocos2d/core/CCNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,10 @@ let NodeDefines = {
* @type {Integer}
* @default 0
*/
_groupIndex: 0,
_groupIndex: {
default: 0,
formerlySerializedAs: 'groupIndex'
},
groupIndex: {
get () {
return this._groupIndex;
Expand Down

0 comments on commit ee71903

Please sign in to comment.