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); },