mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Added not found handling for updateSelection
This commit is contained in:
parent
ed91ab6162
commit
022b491438
@ -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):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user