From ea98ccad42937d8bc1cf420b4a791ca4acfdb229 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Wed, 12 Sep 2007 20:55:27 +0000 Subject: [PATCH] count rotation change as 'smooth position changed', re-compute forward axis after wrtReparent (both theoretical fixes, they seem like the right thing to do but I didn't see anything in particular that was broken because of them) --- direct/src/deadrec/smoothMover.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/direct/src/deadrec/smoothMover.cxx b/direct/src/deadrec/smoothMover.cxx index 248d2e0667..caf575dda8 100644 --- a/direct/src/deadrec/smoothMover.cxx +++ b/direct/src/deadrec/smoothMover.cxx @@ -622,6 +622,7 @@ set_smooth_pos(const LPoint3f &pos, const LVecBase3f &hpr, } if (_smooth_hpr != hpr) { _smooth_hpr = hpr; + _smooth_position_changed = true; _computed_smooth_mat = false; _computed_forward_axis = false; } @@ -814,5 +815,7 @@ handle_wrt_reparent(NodePath &old_parent, NodePath &new_parent) { compose_smooth_mat(); + _computed_forward_axis = false; + np.detach_node(); }