Skip to content

Commit eaa4da7

Browse files
committed
don't import ClockObject; import PandaModules instead
1 parent 7b695c8 commit eaa4da7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

direct/src/interval/Interval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from DirectObject import *
44
from IntervalGlobal import *
5-
import ClockObject
5+
from PandaModules import *
66
import Task
77

88
# Interval events
@@ -18,7 +18,7 @@ class Interval(DirectObject):
1818

1919
playbackCounter = 0
2020

21-
clock = ClockObject.ClockObject.getGlobalClock()
21+
clock = ClockObject.getGlobalClock()
2222

2323
# Class methods
2424
def __init__(self, name, duration, openEnded=1, reverse=0):

direct/src/task/Timer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ClockObject
1+
from PandaModules import *
22
import Task
33

44
class Timer:
@@ -8,7 +8,7 @@ class Timer:
88
def __init__(self, name=None):
99
""" __init__()
1010
"""
11-
self.clock = ClockObject.ClockObject.getGlobalClock()
11+
self.clock = ClockObject.getGlobalClock()
1212
self.finalT = 0.0
1313
self.currT = 0.0
1414
if (name == None):

0 commit comments

Comments
 (0)