diff --git a/cocos/renderer/CCRenderState.h b/cocos/renderer/CCRenderState.h index c26cd3bc48..fd2c20763d 100644 --- a/cocos/renderer/CCRenderState.h +++ b/cocos/renderer/CCRenderState.h @@ -84,6 +84,8 @@ public: * Returns the topmost RenderState in the hierarchy below the given RenderState. */ RenderState* getTopmost(RenderState* below); + + void setParent(RenderState* parent) { _parent = parent; } enum Blend {