diff --git a/direct/src/tkwidgets/Tree.py b/direct/src/tkwidgets/Tree.py index dfc21335e4..30832a82d7 100644 --- a/direct/src/tkwidgets/Tree.py +++ b/direct/src/tkwidgets/Tree.py @@ -437,7 +437,7 @@ class TreeNode: if self.childrenTag: showThisItem = False for tagKey in self.childrenTag.keys(): - if item.nodePath.hasTag(tagKey): + if self.item.nodePath.hasTag(tagKey): showThisItem = self.childrenTag[tagKey] if not showThisItem: return None