mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
warning is now an error
This commit is contained in:
parent
6446d3c673
commit
0f357ba02f
@ -15,18 +15,18 @@
|
|||||||
self.privPostEvent()
|
self.privPostEvent()
|
||||||
|
|
||||||
def play(self, t0 = 0.0, duration = None, scale = 1.0):
|
def play(self, t0 = 0.0, duration = None, scale = 1.0):
|
||||||
self.notify.warning("using deprecated CInterval.play() interface")
|
self.notify.error("using deprecated CInterval.play() interface")
|
||||||
if duration: # None or 0 implies full length
|
if duration: # None or 0 implies full length
|
||||||
self.start(t0, t0 + duration, scale)
|
self.start(t0, t0 + duration, scale)
|
||||||
else:
|
else:
|
||||||
self.start(t0, -1, scale)
|
self.start(t0, -1, scale)
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.notify.warning("using deprecated CInterval.stop() interface")
|
self.notify.error("using deprecated CInterval.stop() interface")
|
||||||
self.finish()
|
self.finish()
|
||||||
|
|
||||||
def setFinalT(self):
|
def setFinalT(self):
|
||||||
self.notify.warning("using deprecated CInterval.setFinalT() interface")
|
self.notify.error("using deprecated CInterval.setFinalT() interface")
|
||||||
self.finish()
|
self.finish()
|
||||||
|
|
||||||
def privPostEvent(self):
|
def privPostEvent(self):
|
||||||
|
@ -313,15 +313,15 @@ class Interval(DirectObject):
|
|||||||
# for the CInterval class via the file CInterval-extensions.py.
|
# for the CInterval class via the file CInterval-extensions.py.
|
||||||
|
|
||||||
def play(self, *args, **kw):
|
def play(self, *args, **kw):
|
||||||
self.notify.warning("using deprecated Interval.play() interface")
|
self.notify.error("using deprecated Interval.play() interface")
|
||||||
self.start(*args, **kw)
|
self.start(*args, **kw)
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.notify.warning("using deprecated Interval.stop() interface")
|
self.notify.error("using deprecated Interval.stop() interface")
|
||||||
self.finish()
|
self.finish()
|
||||||
|
|
||||||
def setFinalT(self):
|
def setFinalT(self):
|
||||||
self.notify.warning("using deprecated Interval.setFinalT() interface")
|
self.notify.error("using deprecated Interval.setFinalT() interface")
|
||||||
self.finish()
|
self.finish()
|
||||||
|
|
||||||
def privPostEvent(self):
|
def privPostEvent(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user