mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Fixed scene graph hierarchy change problem when there is _ in the name of object
This commit is contained in:
parent
37e5bd98f7
commit
4c0c50b952
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user