Merge pull request #2573 from pandamicro/next

Fix dumb issues
This commit is contained in:
pandamicro
2018-04-20 13:51:24 +08:00
committed by GitHub
3 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -701,7 +701,7 @@ var game = {
if (cc.sys.browserType === cc.sys.BROWSER_TYPE_WECHAT_GAME_SUB) {
localCanvas = wx.getSharedCanvas();
}
else if (JSB) {
else if (CC_JSB) {
localCanvas = window.__cccanvas;
}
else {
+5 -5
View File
@@ -50,14 +50,14 @@ function _mat4ToArray(typedArray, mat4) {
typedArray[15] = mat4.m15;
}
Node.prototype.getWorldRTInAB = function (node) {
node.getWorldRT(_mat4_temp);
Node.prototype.getWorldRTInAB = function () {
this.getWorldRT(_mat4_temp);
_mat4ToArray(_typedArray_temp, _mat4_temp);
return _typedArray_temp;
};
Node.prototype.getWorldMatrixInAB = function (node) {
node._updateWorldMatrix();
_mat4ToArray(_typedArray_temp, node._worldMatrix);
Node.prototype.getWorldMatrixInAB = function () {
this._updateWorldMatrix();
_mat4ToArray(_typedArray_temp, this._worldMatrix);
return _typedArray_temp;
};
-2
View File
@@ -23,8 +23,6 @@
THE SOFTWARE.
****************************************************************************/
const utils = require('./utils');
// projection
renderer.PROJ_PERSPECTIVE = 0;
renderer.PROJ_ORTHO = 1;