From 69df47d3bf49fe2fa3afcf4713ff7281a3432567 Mon Sep 17 00:00:00 2001 From: yinkaile <501251991@qq.com> Date: Wed, 22 Nov 2017 15:20:46 +0800 Subject: [PATCH] reset getLocalMatrix getWorldMatrix --- cocos2d/core/CCNode.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cocos2d/core/CCNode.js b/cocos2d/core/CCNode.js index b697540c2b..2712af020f 100644 --- a/cocos2d/core/CCNode.js +++ b/cocos2d/core/CCNode.js @@ -1836,9 +1836,6 @@ var Node = cc.Class({ * node.getLocalMatrix(mat4); */ getLocalMatrix (out) { - if (!out) { - out = affineTrans.makeIdentity(); - } this._updateLocalMatrix(); math.mat4.copy(out, this._matrix); }, @@ -1855,9 +1852,6 @@ var Node = cc.Class({ * node.getLocalMatrix(mat4); */ getWorldMatrix (out) { - if (!out) { - out = affineTrans.makeIdentity(); - } this._updateWorldMatrix(); math.mat4.copy(out, this._worldMatrix); },