From 190460018f03f06274f10b3a2a78f3befdfd5ce4 Mon Sep 17 00:00:00 2001 From: joshuastray Date: Wed, 16 Jul 2014 11:40:09 +0800 Subject: [PATCH] use CC_CONSTRUCTOR_ACCESS in ParallaxNode --- cocos/2d/CCParallaxNode.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cocos/2d/CCParallaxNode.h b/cocos/2d/CCParallaxNode.h index df584f2f63..cc1f12e146 100644 --- a/cocos/2d/CCParallaxNode.h +++ b/cocos/2d/CCParallaxNode.h @@ -70,7 +70,7 @@ public: virtual void removeAllChildrenWithCleanup(bool cleanup) override; virtual void visit(Renderer *renderer, const Mat4 &parentTransform, uint32_t parentFlags) override; -protected: +CC_CONSTRUCTOR_ACCESS: /** Adds a child to the container with a z-order, a parallax ratio and a position offset It returns self, so you can chain several addChilds. @since v0.8 @@ -83,6 +83,7 @@ protected: */ virtual ~ParallaxNode(); +protected: Vec2 absolutePosition(); Vec2 _lastPosition;