Skip to content

Commit c67d5f3

Browse files
committed
Fixed TMX scale error
1 parent 9f48972 commit c67d5f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cocos2d/tilemap/CCTMXLayerCanvasRenderCmd.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
this._cacheDirty = true;
5151
};
5252

53-
proto._renderingChildToCache = function (scaleX, scaleY) {
53+
proto._renderingChildToCache = function () {
5454
if (this._cacheDirty) {
5555
var wrapper = this._cacheContext,
5656
context = wrapper.getContext(), locCanvas = this._cacheCanvas;
@@ -65,7 +65,7 @@
6565
if (locChildren[i]){
6666
var selCmd = locChildren[i]._renderCmd;
6767
if(selCmd){
68-
selCmd.rendering(wrapper, scaleX, scaleY);
68+
selCmd.rendering(wrapper, 1, 1);
6969
selCmd._cacheDirty = false;
7070
}
7171
}
@@ -82,7 +82,7 @@
8282
return;
8383

8484
var node = this._node;
85-
this._renderingChildToCache(node._scaleX, node._scaleY);
85+
this._renderingChildToCache();
8686
var wrapper = ctx || cc._renderContext, context = wrapper.getContext();
8787
wrapper.setGlobalAlpha(alpha);
8888

0 commit comments

Comments
 (0)