Browse Source

Fixed a bug in show panda object feature

Gyedo Jeon 15 years ago
parent
commit
2ff1f376fa
1 changed files with 3 additions and 0 deletions
  1. 3 0
      direct/src/leveleditor/SceneGraphUIBase.py

+ 3 - 0
direct/src/leveleditor/SceneGraphUIBase.py

@@ -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)