From f3df0336964ba5b847e06f7044f0b4bd4d91a623 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 17 Mar 2010 22:31:45 +0000 Subject: [PATCH] fix is_2d() bug --- panda/src/pgraph/transformState.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/pgraph/transformState.cxx b/panda/src/pgraph/transformState.cxx index 3326d1172a..5d90849609 100644 --- a/panda/src/pgraph/transformState.cxx +++ b/panda/src/pgraph/transformState.cxx @@ -1758,7 +1758,7 @@ do_invert_compose(const TransformState *other) const { // _inv_mat has been allocated and filled in. nassertr(_inv_mat != (LMatrix4f *)NULL, make_invalid()); - if (is_2d()) { + if (is_2d() && other->is_2d()) { const LMatrix4f &i = *_inv_mat; LMatrix3f inv3(i(0, 0), i(0, 1), i(0, 3), i(1, 0), i(1, 1), i(1, 3),