From dfdaf9ed61dd87db46d1af20b92d0c70aedcdd38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Petr=C3=A9re?= Date: Wed, 30 May 2018 09:36:21 -0300 Subject: [PATCH] cc.PI2 was only present in html5 release, added it into JSB (#18860) [JavaScript] cc.PI2 was only present in html5 release, added it into JSB --- cocos/scripting/js-bindings/script/jsb_cocos2d.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cocos/scripting/js-bindings/script/jsb_cocos2d.js b/cocos/scripting/js-bindings/script/jsb_cocos2d.js index 130a75ea73..62c4e3abc0 100644 --- a/cocos/scripting/js-bindings/script/jsb_cocos2d.js +++ b/cocos/scripting/js-bindings/script/jsb_cocos2d.js @@ -301,6 +301,12 @@ cc.INVALID_INDEX = -1; */ cc.PI = Math.PI; +/** + * @constant + * @type Number + */ +cc.PI2 = Math.PI * 2; + /** * @constant * @type Number