Bladeren bron

fix parabola xform

David Rose 17 jaren geleden
bovenliggende
commit
843790e041
1 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  1. 4 3
      panda/src/mathutil/parabola_src.cxx

+ 4 - 3
panda/src/mathutil/parabola_src.cxx

@@ -20,9 +20,10 @@
 ////////////////////////////////////////////////////////////////////
 void FLOATNAME(Parabola)::
 xform(const FLOATNAME(LMatrix4) &mat) {
-  // I'm not really sure if this is the right thing to do here.
-  _a = mat.xform_vec_general(_a);
-  _b = mat.xform_vec_general(_b);
+  // Note that xform_vec() is the correct operation here, while
+  // xform_vec_general() is not.
+  _a = mat.xform_vec(_a);
+  _b = mat.xform_vec(_b);
   _c = mat.xform_point(_c);
 }