Fixed scene graph hierarchy change problem when there is _ in the name of object

This commit is contained in:
Gyedo Jeon 2010-02-04 22:56:05 +00:00
parent 37e5bd98f7
commit 4c0c50b952

View File

@ -186,7 +186,7 @@ class SceneGraphUI(wx.Panel):
def changeHierarchy(self, data, x, y):
itemText = data.split('_')
itemId = itemText[1]
itemId = itemText[-1] # uid is the last token
parent = self.tree.GetRootItem()
item = self.traverse(parent, itemId)
if item is None: