Skip to content

Commit

Permalink
cc.PI2 was only present in html5 release, added it into JSB (cocos2d#…
Browse files Browse the repository at this point in the history
…18860)

[JavaScript] cc.PI2 was only present in html5 release, added it into JSB
  • Loading branch information
ricardopetrere authored and drelaptop committed May 30, 2018
1 parent 59c854a commit dfdaf9e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cocos/scripting/js-bindings/script/jsb_cocos2d.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,12 @@ cc.INVALID_INDEX = -1;
*/
cc.PI = Math.PI;

/**
* @constant
* @type Number
*/
cc.PI2 = Math.PI * 2;

/**
* @constant
* @type Number
Expand Down

0 comments on commit dfdaf9e

Please sign in to comment.