mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
added scene graph
This commit is contained in:
parent
4c682f1ef3
commit
c7e7cc8c1c
@ -8,6 +8,7 @@ from direct.wxwidgets.WxAppShell import *
|
|||||||
from ViewPort import *
|
from ViewPort import *
|
||||||
from ObjectPaletteUI import *
|
from ObjectPaletteUI import *
|
||||||
from ObjectPropertyUI import *
|
from ObjectPropertyUI import *
|
||||||
|
from SceneGraphUI import *
|
||||||
|
|
||||||
class PandaTextDropTarget(wx.TextDropTarget):
|
class PandaTextDropTarget(wx.TextDropTarget):
|
||||||
def __init__(self, editor):
|
def __init__(self, editor):
|
||||||
@ -104,6 +105,7 @@ class LevelEditorUI(WxAppShell):
|
|||||||
|
|
||||||
self.objectPaletteUI = ObjectPaletteUI(self.leftBarUpPane, self.editor)
|
self.objectPaletteUI = ObjectPaletteUI(self.leftBarUpPane, self.editor)
|
||||||
self.objectPropertyUI = ObjectPropertyUI(self.rightBarUpPane, self.editor)
|
self.objectPropertyUI = ObjectPropertyUI(self.rightBarUpPane, self.editor)
|
||||||
|
self.sceneGraphUI = SceneGraphUI(self.leftBarDownPane, self.editor)
|
||||||
|
|
||||||
def onSetFocus(self):
|
def onSetFocus(self):
|
||||||
print 'wx got focus'
|
print 'wx got focus'
|
||||||
|
@ -108,6 +108,8 @@ class ObjectMgr:
|
|||||||
if fSelectObject:
|
if fSelectObject:
|
||||||
base.direct.select(newobj)
|
base.direct.select(newobj)
|
||||||
|
|
||||||
|
self.editor.ui.sceneGraphUI.add(newobj)
|
||||||
|
|
||||||
return newobj
|
return newobj
|
||||||
|
|
||||||
def removeObjectByNodePath(self, nodePath):
|
def removeObjectByNodePath(self, nodePath):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user