From 843790e04199368cf81fb831bd7c503a3b2a8f71 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 6 Aug 2008 13:43:39 +0000 Subject: [PATCH] fix parabola xform --- panda/src/mathutil/parabola_src.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/panda/src/mathutil/parabola_src.cxx b/panda/src/mathutil/parabola_src.cxx index 75a2879711..dd1799c9ae 100644 --- a/panda/src/mathutil/parabola_src.cxx +++ b/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); }