From 5f17984826e54f9fcd8a30c7d41c13ee59256e88 Mon Sep 17 00:00:00 2001 From: James Chen Date: Mon, 23 Dec 2013 21:53:23 +0800 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20hide=20parent=E2=80=99s=20addCh?= =?UTF-8?q?ild=20method=20in=20TMXLayer=20class.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cocos/2d/CCTMXLayer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/cocos/2d/CCTMXLayer.h b/cocos/2d/CCTMXLayer.h index b2d254fac4..31cd4b9cbd 100644 --- a/cocos/2d/CCTMXLayer.h +++ b/cocos/2d/CCTMXLayer.h @@ -185,6 +185,7 @@ public: /** TMXLayer doesn't support adding a Sprite manually. @warning addchild(z, tag); is not supported on TMXLayer. Instead of setTileGID. */ + using SpriteBatchNode::addChild; virtual void addChild(Node * child, int zOrder, int tag) override; // super method void removeChild(Node* child, bool cleanup) override;