Browse Source

added scene graph

Arkady Trestman 16 years ago
parent
commit
c7e7cc8c1c
2 changed files with 4 additions and 0 deletions
  1. 2 0
      direct/src/leveleditor/LevelEditorUI.py
  2. 2 0
      direct/src/leveleditor/ObjectMgr.py

+ 2 - 0
direct/src/leveleditor/LevelEditorUI.py

@@ -8,6 +8,7 @@ from direct.wxwidgets.WxAppShell import *
 from ViewPort import *
 from ObjectPaletteUI import *
 from ObjectPropertyUI import *
+from SceneGraphUI import *
 
 class PandaTextDropTarget(wx.TextDropTarget):
     def __init__(self, editor):
@@ -104,6 +105,7 @@ class LevelEditorUI(WxAppShell):
 
         self.objectPaletteUI = ObjectPaletteUI(self.leftBarUpPane, self.editor)
         self.objectPropertyUI = ObjectPropertyUI(self.rightBarUpPane, self.editor)
+        self.sceneGraphUI = SceneGraphUI(self.leftBarDownPane, self.editor)
 
     def onSetFocus(self):
         print 'wx got focus'

+ 2 - 0
direct/src/leveleditor/ObjectMgr.py

@@ -107,6 +107,8 @@ class ObjectMgr:
 
             if fSelectObject:
                 base.direct.select(newobj)
+                
+            self.editor.ui.sceneGraphUI.add(newobj)
 
         return newobj