added scene graph

This commit is contained in:
Arkady Trestman 2009-10-30 23:49:13 +00:00
parent 4c682f1ef3
commit c7e7cc8c1c
2 changed files with 4 additions and 0 deletions

View File

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

View File

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