Browse Source

set_view_mat() needs to be preserved through make_copy()

David Rose 14 years ago
parent
commit
c301075586
1 changed files with 5 additions and 0 deletions
  1. 5 0
      panda/src/gobj/lens.cxx

+ 5 - 0
panda/src/gobj/lens.cxx

@@ -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;