mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fixed smooth movement popping after reparenting
This commit is contained in:
parent
17b0b4af5c
commit
55e9d9cdf5
@ -789,5 +789,16 @@ handle_wrt_reparent(NodePath &old_parent, NodePath &new_parent) {
|
||||
(*pi)._pos = np.get_pos(new_parent);
|
||||
(*pi)._hpr = np.get_hpr(new_parent);
|
||||
}
|
||||
|
||||
np.set_pos_hpr(_sample._pos, _sample._hpr);
|
||||
_sample._pos = np.get_pos(new_parent);
|
||||
_sample._hpr = np.get_hpr(new_parent);
|
||||
|
||||
np.set_pos_hpr(_smooth_pos, _smooth_hpr);
|
||||
_smooth_pos = np.get_pos(new_parent);
|
||||
_smooth_hpr = np.get_hpr(new_parent);
|
||||
|
||||
compose_smooth_mat();
|
||||
|
||||
np.detach_node();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user