From 07a7224e2dd17f6aaeeeeda02837567675c7f1c2 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 13 Jul 2001 21:08:24 +0000 Subject: [PATCH] oops with invert_from() --- panda/src/linmath/lmatrix4_src.I | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/panda/src/linmath/lmatrix4_src.I b/panda/src/linmath/lmatrix4_src.I index aeb3cced7d..3f76fd2cf7 100644 --- a/panda/src/linmath/lmatrix4_src.I +++ b/panda/src/linmath/lmatrix4_src.I @@ -1078,7 +1078,10 @@ INLINE_LINMATH bool FLOATNAME(LMatrix4):: invert_affine_from(const FLOATNAME(LMatrix4) &other) { FLOATNAME(LMatrix3) rot; - rot.invert_from(other.get_upper_3()); // probably could use transpose here + // probably could use transpose here + if (!rot.invert_from(other.get_upper_3())) { + return false; + } set_upper_3(rot); // set_col(3, FLOATNAME(LVecBase4)(0.0f, 0.0f, 0.0f, 1.0f));