Przeglądaj źródła

reduce sensitivity to paranoid complaints

David Rose 23 lat temu
rodzic
commit
eaab3cbb4b
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      panda/src/pgraph/transformState.cxx

+ 2 - 2
panda/src/pgraph/transformState.cxx

@@ -709,7 +709,7 @@ do_compose(const TransformState *other) const {
     if (paranoid_compose) {
       // Now verify against the matrix.
       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);
         pgraph_cat.warning()
           << "Componentwise composition of " << *this << " and " << *other
@@ -778,7 +778,7 @@ do_invert_compose(const TransformState *other) const {
       } else {
         nassertr(_inv_mat != (LMatrix4f *)NULL, make_invalid());
         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);
           pgraph_cat.warning()
             << "Componentwise invert-composition of " << *this << " and " << *other