mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 12:43:44 -04:00
fix compose between 2-d and 3-d mats
This commit is contained in:
parent
5ad4f3bc5f
commit
6f21efb679
@ -1370,7 +1370,7 @@ do_compose(const TransformState *other) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Do the operation with matrices.
|
// Do the operation with matrices.
|
||||||
if (is_2d()) {
|
if (is_2d() && other->is_2d()) {
|
||||||
LMatrix3f new_mat = other->get_mat3() * get_mat3();
|
LMatrix3f new_mat = other->get_mat3() * get_mat3();
|
||||||
return make_mat3(new_mat);
|
return make_mat3(new_mat);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user