Browse Source

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

Gyedo Jeon 16 years ago
parent
commit
4c0c50b952
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/leveleditor/SceneGraphUI.py

+ 1 - 1
direct/src/leveleditor/SceneGraphUI.py

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