diff --git a/direct/src/tkwidgets/SceneGraphExplorer.py b/direct/src/tkwidgets/SceneGraphExplorer.py index 6223ed1152..2ff0ab87c9 100644 --- a/direct/src/tkwidgets/SceneGraphExplorer.py +++ b/direct/src/tkwidgets/SceneGraphExplorer.py @@ -125,8 +125,9 @@ class SceneGraphExplorer(Pmw.MegaWidget, DirectObject): def updateSelection(self, searchKey): # [gjeon] update SGE selection with directSession sceneGraphItem = self._node.find(searchKey) - sceneGraphItem.reveal() - sceneGraphItem.select() + if sceneGraphItem: + sceneGraphItem.reveal() + sceneGraphItem.select() class SceneGraphExplorerItem(TreeItem):