mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
fix is_2d() bug
This commit is contained in:
parent
8c4996c152
commit
f3df033696
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user