mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
reduce sensitivity to paranoid complaints
This commit is contained in:
parent
c00fef16ee
commit
eaab3cbb4b
@ -709,7 +709,7 @@ do_compose(const TransformState *other) const {
|
|||||||
if (paranoid_compose) {
|
if (paranoid_compose) {
|
||||||
// Now verify against the matrix.
|
// Now verify against the matrix.
|
||||||
LMatrix4f new_mat = other->get_mat() * get_mat();
|
LMatrix4f new_mat = other->get_mat() * get_mat();
|
||||||
if (!new_mat.almost_equal(result->get_mat(), 0.0001)) {
|
if (!new_mat.almost_equal(result->get_mat(), 0.001)) {
|
||||||
CPT(TransformState) correct = make_mat(new_mat);
|
CPT(TransformState) correct = make_mat(new_mat);
|
||||||
pgraph_cat.warning()
|
pgraph_cat.warning()
|
||||||
<< "Componentwise composition of " << *this << " and " << *other
|
<< "Componentwise composition of " << *this << " and " << *other
|
||||||
@ -778,7 +778,7 @@ do_invert_compose(const TransformState *other) const {
|
|||||||
} else {
|
} else {
|
||||||
nassertr(_inv_mat != (LMatrix4f *)NULL, make_invalid());
|
nassertr(_inv_mat != (LMatrix4f *)NULL, make_invalid());
|
||||||
LMatrix4f new_mat = other->get_mat() * (*_inv_mat);
|
LMatrix4f new_mat = other->get_mat() * (*_inv_mat);
|
||||||
if (!new_mat.almost_equal(result->get_mat(), 0.0001)) {
|
if (!new_mat.almost_equal(result->get_mat(), 0.001)) {
|
||||||
CPT(TransformState) correct = make_mat(new_mat);
|
CPT(TransformState) correct = make_mat(new_mat);
|
||||||
pgraph_cat.warning()
|
pgraph_cat.warning()
|
||||||
<< "Componentwise invert-composition of " << *this << " and " << *other
|
<< "Componentwise invert-composition of " << *this << " and " << *other
|
||||||
|
Loading…
x
Reference in New Issue
Block a user