mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -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 DirectObject import *
|
||||||
from IntervalGlobal import *
|
from IntervalGlobal import *
|
||||||
import ClockObject
|
from PandaModules import *
|
||||||
import Task
|
import Task
|
||||||
|
|
||||||
# Interval events
|
# Interval events
|
||||||
@ -18,7 +18,7 @@ class Interval(DirectObject):
|
|||||||
|
|
||||||
playbackCounter = 0
|
playbackCounter = 0
|
||||||
|
|
||||||
clock = ClockObject.ClockObject.getGlobalClock()
|
clock = ClockObject.getGlobalClock()
|
||||||
|
|
||||||
# Class methods
|
# Class methods
|
||||||
def __init__(self, name, duration, openEnded=1, reverse=0):
|
def __init__(self, name, duration, openEnded=1, reverse=0):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import ClockObject
|
from PandaModules import *
|
||||||
import Task
|
import Task
|
||||||
|
|
||||||
class Timer:
|
class Timer:
|
||||||
@ -8,7 +8,7 @@ class Timer:
|
|||||||
def __init__(self, name=None):
|
def __init__(self, name=None):
|
||||||
""" __init__()
|
""" __init__()
|
||||||
"""
|
"""
|
||||||
self.clock = ClockObject.ClockObject.getGlobalClock()
|
self.clock = ClockObject.getGlobalClock()
|
||||||
self.finalT = 0.0
|
self.finalT = 0.0
|
||||||
self.currT = 0.0
|
self.currT = 0.0
|
||||||
if (name == None):
|
if (name == None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user