mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
intervals start immediately at time 0
This commit is contained in:
parent
9346f20b4f
commit
df9a0176b1
@ -367,6 +367,7 @@ priv_initialize(double t) {
|
||||
|
||||
int now = double_to_int_time(t);
|
||||
|
||||
/*
|
||||
// One special case: if we step to t == 0.0, it really means to the
|
||||
// very beginning of the interval, *before* any events that occurred
|
||||
// at time 0. (Most of the time, stepping to a particular time
|
||||
@ -374,6 +375,7 @@ priv_initialize(double t) {
|
||||
if (t == 0.0) {
|
||||
now = -1;
|
||||
}
|
||||
*/
|
||||
|
||||
// Now look for events from the beginning up to the current time.
|
||||
_processing_events = true;
|
||||
@ -452,6 +454,7 @@ priv_step(double t) {
|
||||
check_started("priv_step");
|
||||
int now = double_to_int_time(t);
|
||||
|
||||
/*
|
||||
// One special case: if we step to t == 0.0, it really means to the
|
||||
// very beginning of the interval, *before* any events that occurred
|
||||
// at time 0. (Most of the time, stepping to a particular time
|
||||
@ -459,6 +462,7 @@ priv_step(double t) {
|
||||
if (t == 0.0) {
|
||||
now = -1;
|
||||
}
|
||||
*/
|
||||
|
||||
// Now look for events between the last time we ran and the current
|
||||
// time.
|
||||
@ -567,6 +571,7 @@ priv_reverse_initialize(double t) {
|
||||
|
||||
int now = double_to_int_time(t);
|
||||
|
||||
/*
|
||||
// One special case: if we step to t == 0.0, it really means to the
|
||||
// very beginning of the interval, *before* any events that occurred
|
||||
// at time 0. (Most of the time, stepping to a particular time
|
||||
@ -574,6 +579,7 @@ priv_reverse_initialize(double t) {
|
||||
if (t == 0.0) {
|
||||
now = -1;
|
||||
}
|
||||
*/
|
||||
|
||||
// Now look for events from the end down to the current time.
|
||||
_processing_events = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user