set_view_mat() needs to be preserved through make_copy()

This commit is contained in:
David Rose 2012-02-15 02:02:13 +00:00
parent 540e5ff85e
commit c301075586

View File

@ -2019,6 +2019,11 @@ CData(const Lens::CData &copy) {
_convergence_distance = copy._convergence_distance;
_keystone = copy._keystone;
// This matrix might have been explicitly set by the user (if
// UF_view_mat is applied), so we must preserve it. Other matrices
// are implicitly computed.
_lens_mat = copy._lens_mat;
_user_flags = copy._user_flags;
_comp_flags = 0;