From adad442a9f837aad40f4edf1156dcb95b8b18b36 Mon Sep 17 00:00:00 2001 From: SijieWang Date: Mon, 4 Mar 2019 16:02:53 +0800 Subject: [PATCH] Fix the problem of parent not being able to get attr (#3956) --- cocos/scene-graph/base-node.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cocos/scene-graph/base-node.ts b/cocos/scene-graph/base-node.ts index fa0b414b86..29860595e4 100644 --- a/cocos/scene-graph/base-node.ts +++ b/cocos/scene-graph/base-node.ts @@ -210,6 +210,8 @@ export class BaseNode extends CCObject { get activeInHierarchy () { return this._activeInHierarchy; } + + @property get parent () { return this._parent; }