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)

This commit is contained in:
Darren Ranalli 2007-09-12 20:55:27 +00:00
parent 9c63234504
commit ea98ccad42
1 changed files with 3 additions and 0 deletions

View File

@ -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();
}