Skip to content

Commit 0a622d0

Browse files
committed
direct: fix a few broken imports
1 parent a9759fa commit 0a622d0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

direct/src/controls/InputState.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
2-
31
from direct.directnotify import DirectNotifyGlobal
42
from direct.showbase import DirectObject
3+
from direct.showbase.PythonUtil import SerialNumGen
54

65
# internal class, don't create these on your own
76
class InputStateToken:

direct/src/directdevices/DirectFastrak.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ class DirectFastrak(DirectObject):
2020
fastrakCount = 0
2121
notify = DirectNotifyGlobal.directNotify.newCategory('DirectFastrak')
2222

23-
def __init__(self, device = 'Tracker0', nodePath = base.direct.camera):
23+
def __init__(self, device = 'Tracker0', nodePath = None):
2424
# See if device manager has been initialized
25-
if base.direct.deviceManager == None:
25+
if base.direct.deviceManager is None:
2626
base.direct.deviceManager = DirectDeviceManager()
2727

2828
# Set name

direct/src/leveleditor/ActionMgr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from pandac.PandaModules import *
2+
from direct.showbase.PythonUtil import Functor
23
from . import ObjectGlobals as OG
34

45
class ActionMgr:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy