Переглянути джерело

set_view_mat() needs to be preserved through make_copy()

David Rose 14 роки тому
батько
коміт
c301075586
1 змінених файлів з 5 додано та 0 видалено
  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;