From 022b491438393c37e50e56dc0d9217c56fbaea45 Mon Sep 17 00:00:00 2001 From: Gyedo Jeon Date: Tue, 17 Jul 2007 18:44:44 +0000 Subject: [PATCH] Added not found handling for updateSelection --- direct/src/tkwidgets/SceneGraphExplorer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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):