mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
direct: fix a few broken imports
This commit is contained in:
parent
a9759fab14
commit
0a622d08e9
@ -1,7 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
from direct.directnotify import DirectNotifyGlobal
|
from direct.directnotify import DirectNotifyGlobal
|
||||||
from direct.showbase import DirectObject
|
from direct.showbase import DirectObject
|
||||||
|
from direct.showbase.PythonUtil import SerialNumGen
|
||||||
|
|
||||||
# internal class, don't create these on your own
|
# internal class, don't create these on your own
|
||||||
class InputStateToken:
|
class InputStateToken:
|
||||||
|
@ -20,9 +20,9 @@ class DirectFastrak(DirectObject):
|
|||||||
fastrakCount = 0
|
fastrakCount = 0
|
||||||
notify = DirectNotifyGlobal.directNotify.newCategory('DirectFastrak')
|
notify = DirectNotifyGlobal.directNotify.newCategory('DirectFastrak')
|
||||||
|
|
||||||
def __init__(self, device = 'Tracker0', nodePath = base.direct.camera):
|
def __init__(self, device = 'Tracker0', nodePath = None):
|
||||||
# See if device manager has been initialized
|
# See if device manager has been initialized
|
||||||
if base.direct.deviceManager == None:
|
if base.direct.deviceManager is None:
|
||||||
base.direct.deviceManager = DirectDeviceManager()
|
base.direct.deviceManager = DirectDeviceManager()
|
||||||
|
|
||||||
# Set name
|
# Set name
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
from pandac.PandaModules import *
|
from pandac.PandaModules import *
|
||||||
|
from direct.showbase.PythonUtil import Functor
|
||||||
from . import ObjectGlobals as OG
|
from . import ObjectGlobals as OG
|
||||||
|
|
||||||
class ActionMgr:
|
class ActionMgr:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user