mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
only take real updates
This commit is contained in:
parent
f80797c12a
commit
880b413c00
@ -66,6 +66,8 @@ void LerpCorrection::step(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void LerpCorrection::new_target(LPoint3f& target, LVector3f&) {
|
void LerpCorrection::new_target(LPoint3f& target, LVector3f&) {
|
||||||
|
if (target == save_p)
|
||||||
|
return;
|
||||||
if (have_both) {
|
if (have_both) {
|
||||||
time = 0.;
|
time = 0.;
|
||||||
prev_p = _curr_p;
|
prev_p = _curr_p;
|
||||||
@ -101,6 +103,8 @@ void SplineCorrection::step(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SplineCorrection::new_target(LPoint3f& target, LVector3f& v_target) {
|
void SplineCorrection::new_target(LPoint3f& target, LVector3f& v_target) {
|
||||||
|
if (target == save_p)
|
||||||
|
return;
|
||||||
if (have_both) {
|
if (have_both) {
|
||||||
time = 0.;
|
time = 0.;
|
||||||
prev_p = _curr_p;
|
prev_p = _curr_p;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user