Browse Source

*** empty log message ***

David Rose 25 years ago
parent
commit
c612bc0e52
1 changed files with 4 additions and 0 deletions
  1. 4 0
      panda/src/mathutil/look_at.cxx

+ 4 - 0
panda/src/mathutil/look_at.cxx

@@ -56,6 +56,10 @@ template<class NumType>
 static void
 static void
 _heads_up(LMatrix3<NumType> &mat, const LVector3<NumType> &fwd, 
 _heads_up(LMatrix3<NumType> &mat, const LVector3<NumType> &fwd, 
 	  const LVector3<NumType> &up, CoordinateSystem cs) {
 	  const LVector3<NumType> &up, CoordinateSystem cs) {
+  if (cs == CS_default) {
+    cs = default_coordinate_system;
+  }
+
   if (cs == CS_zup_right || cs == CS_zup_left) {
   if (cs == CS_zup_right || cs == CS_zup_left) {
     // Z-up.
     // Z-up.