mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Added not found handling for updateSelection
This commit is contained in:
parent
ed91ab6162
commit
022b491438
@ -125,6 +125,7 @@ class SceneGraphExplorer(Pmw.MegaWidget, DirectObject):
|
|||||||
def updateSelection(self, searchKey):
|
def updateSelection(self, searchKey):
|
||||||
# [gjeon] update SGE selection with directSession
|
# [gjeon] update SGE selection with directSession
|
||||||
sceneGraphItem = self._node.find(searchKey)
|
sceneGraphItem = self._node.find(searchKey)
|
||||||
|
if sceneGraphItem:
|
||||||
sceneGraphItem.reveal()
|
sceneGraphItem.reveal()
|
||||||
sceneGraphItem.select()
|
sceneGraphItem.select()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user