mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
leveleditor: Use panda3d.core
This commit is contained in:
parent
294dc5fc40
commit
4f548889a8
@ -1,4 +1,4 @@
|
|||||||
from pandac.PandaModules import *
|
from panda3d.core import *
|
||||||
from . import ObjectGlobals as OG
|
from . import ObjectGlobals as OG
|
||||||
|
|
||||||
class ActionMgr:
|
class ActionMgr:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
This is the module for curve edit
|
This is the module for curve edit
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from pandac.PandaModules import *
|
from panda3d.core import *
|
||||||
from direct.wxwidgets.WxPandaShell import *
|
from direct.wxwidgets.WxPandaShell import *
|
||||||
from direct.showbase.DirectObject import *
|
from direct.showbase.DirectObject import *
|
||||||
from direct.directtools.DirectSelection import SelectionRay
|
from direct.directtools.DirectSelection import SelectionRay
|
||||||
|
@ -11,7 +11,7 @@ class FileMgr:
|
|||||||
def saveToFile(self, fileName):
|
def saveToFile(self, fileName):
|
||||||
try:
|
try:
|
||||||
f = open(fileName, 'w')
|
f = open(fileName, 'w')
|
||||||
f.write("from pandac.PandaModules import *\n")
|
f.write("from panda3d.core import *\n")
|
||||||
f.write("\nif hasattr(base, 'le'):\n")
|
f.write("\nif hasattr(base, 'le'):\n")
|
||||||
f.write(" objectMgr = base.le.objectMgr\n")
|
f.write(" objectMgr = base.le.objectMgr\n")
|
||||||
f.write(" animMgr = base.le.animMgr\n")
|
f.write(" animMgr = base.le.animMgr\n")
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Defines Layer UI
|
Defines Layer UI
|
||||||
"""
|
"""
|
||||||
import wx
|
import wx
|
||||||
from pandac.PandaModules import *
|
from panda3d.core import *
|
||||||
|
|
||||||
from . import ObjectGlobals as OG
|
from . import ObjectGlobals as OG
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
## import os
|
## import os
|
||||||
## from wx.lib.agw import fourwaysplitter as FWS
|
## from wx.lib.agw import fourwaysplitter as FWS
|
||||||
|
|
||||||
from pandac.PandaModules import *
|
from panda3d.core import *
|
||||||
from direct.wxwidgets.WxPandaShell import *
|
from direct.wxwidgets.WxPandaShell import *
|
||||||
from direct.directtools.DirectSelection import SelectionRay
|
from direct.directtools.DirectSelection import SelectionRay
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import os, time, copy
|
|||||||
|
|
||||||
from direct.task import Task
|
from direct.task import Task
|
||||||
from direct.actor.Actor import Actor
|
from direct.actor.Actor import Actor
|
||||||
from pandac.PandaModules import *
|
from panda3d.core import *
|
||||||
from .ActionMgr import *
|
from .ActionMgr import *
|
||||||
from . import ObjectGlobals as OG
|
from . import ObjectGlobals as OG
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ from wx.lib.embeddedimage import PyEmbeddedImage
|
|||||||
from wx.lib.scrolledpanel import ScrolledPanel
|
from wx.lib.scrolledpanel import ScrolledPanel
|
||||||
from wx.lib.agw.cubecolourdialog import *
|
from wx.lib.agw.cubecolourdialog import *
|
||||||
from direct.wxwidgets.WxSlider import *
|
from direct.wxwidgets.WxSlider import *
|
||||||
from pandac.PandaModules import *
|
from panda3d.core import *
|
||||||
from . import ObjectGlobals as OG
|
from . import ObjectGlobals as OG
|
||||||
from . import AnimGlobals as AG
|
from . import AnimGlobals as AG
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Defines ProtoObjs List UI
|
|||||||
import wx
|
import wx
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from pandac.PandaModules import *
|
from panda3d.core import *
|
||||||
from .ProtoObjs import *
|
from .ProtoObjs import *
|
||||||
|
|
||||||
class ProtoDropTarget(wx.PyDropTarget):
|
class ProtoDropTarget(wx.PyDropTarget):
|
||||||
|
@ -3,7 +3,7 @@ Defines ProtoPalette tree UI
|
|||||||
"""
|
"""
|
||||||
import wx
|
import wx
|
||||||
import os
|
import os
|
||||||
from pandac.PandaModules import *
|
from panda3d.core import *
|
||||||
from .PaletteTreeCtrl import *
|
from .PaletteTreeCtrl import *
|
||||||
|
|
||||||
class UniversalDropTarget(wx.PyDropTarget):
|
class UniversalDropTarget(wx.PyDropTarget):
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Defines Scene Graph tree UI Base
|
Defines Scene Graph tree UI Base
|
||||||
"""
|
"""
|
||||||
import wx
|
import wx
|
||||||
from pandac.PandaModules import *
|
from panda3d.core import *
|
||||||
from .ActionMgr import *
|
from .ActionMgr import *
|
||||||
|
|
||||||
from . import ObjectGlobals as OG
|
from . import ObjectGlobals as OG
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from pandac.PandaModules import *
|
from panda3d.core import *
|
||||||
|
|
||||||
if hasattr(base, 'le'):
|
if hasattr(base, 'le'):
|
||||||
objectMgr = base.le.objectMgr
|
objectMgr = base.le.objectMgr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user