From 4c0c50b952e048cb39f21d498be488793c38c4b2 Mon Sep 17 00:00:00 2001 From: Gyedo Jeon Date: Thu, 4 Feb 2010 22:56:05 +0000 Subject: [PATCH] Fixed scene graph hierarchy change problem when there is _ in the name of object --- direct/src/leveleditor/SceneGraphUI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/leveleditor/SceneGraphUI.py b/direct/src/leveleditor/SceneGraphUI.py index ea4133d844..f9876568dc 100755 --- a/direct/src/leveleditor/SceneGraphUI.py +++ b/direct/src/leveleditor/SceneGraphUI.py @@ -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: