mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
don't import ClockObject; import PandaModules instead
This commit is contained in:
parent
7b695c8ace
commit
eaa4da70f9
@ -2,7 +2,7 @@
|
||||
|
||||
from DirectObject import *
|
||||
from IntervalGlobal import *
|
||||
import ClockObject
|
||||
from PandaModules import *
|
||||
import Task
|
||||
|
||||
# Interval events
|
||||
@ -18,7 +18,7 @@ class Interval(DirectObject):
|
||||
|
||||
playbackCounter = 0
|
||||
|
||||
clock = ClockObject.ClockObject.getGlobalClock()
|
||||
clock = ClockObject.getGlobalClock()
|
||||
|
||||
# Class methods
|
||||
def __init__(self, name, duration, openEnded=1, reverse=0):
|
||||
|
@ -1,4 +1,4 @@
|
||||
import ClockObject
|
||||
from PandaModules import *
|
||||
import Task
|
||||
|
||||
class Timer:
|
||||
@ -8,7 +8,7 @@ class Timer:
|
||||
def __init__(self, name=None):
|
||||
""" __init__()
|
||||
"""
|
||||
self.clock = ClockObject.ClockObject.getGlobalClock()
|
||||
self.clock = ClockObject.getGlobalClock()
|
||||
self.finalT = 0.0
|
||||
self.currT = 0.0
|
||||
if (name == None):
|
||||
|
Loading…
x
Reference in New Issue
Block a user