From 59402c0e5e5d7fa312c8e03a2d1cfd75b4dc94cc Mon Sep 17 00:00:00 2001 From: yinkaile <501251991@qq.com> Date: Tue, 3 Jul 2018 13:46:17 +0800 Subject: [PATCH] fixed render TiledTile (#2936) --- cocos2d/tilemap/tmx-layer-assembler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2d/tilemap/tmx-layer-assembler.js b/cocos2d/tilemap/tmx-layer-assembler.js index 80035037b4..08bdb3d962 100644 --- a/cocos2d/tilemap/tmx-layer-assembler.js +++ b/cocos2d/tilemap/tmx-layer-assembler.js @@ -258,7 +258,7 @@ let tmxAssembler = { // transform a2 = a; b2 = b; c2 = c; d2 = d; tx2 = tx; ty2 = ty; tiledNode._updateLocalMatrix(); - mat4.copy(_mat4_temp, tiledNode._mat4_temp); + mat4.copy(_mat4_temp, tiledNode._matrix); vec3.set(_vec3_temp, -left, -bottom, 0); mat4.translate(_mat4_temp, _mat4_temp, _vec3_temp); mat4.multiply(_mat4_temp, node._worldMatrix, _mat4_temp);