Fixed a bug in show panda object feature

This commit is contained in:
Gyedo Jeon 2010-05-01 00:37:55 +00:00
parent 3da573803f
commit 2ff1f376fa

View File

@ -65,6 +65,9 @@ class SceneGraphUIBase(wx.Panel):
itemId = self.tree.GetItemPyData(parent)
i = 0
for child in objNodePath.getChildren():
if child.hasTag('OBJRoot'):
# since they are already shown in scene graph tree
continue
namestr = "%s.%s"%(child.node().getType(), child.node().getName())
newItem = self.tree.PrependItem(parent, namestr)
newItemId = "%s.%s"%(itemId, i)