Part: replace PyObject_IsTrue with Base::asBoolean

This commit is contained in:
wmayer
2022-07-16 13:31:10 +02:00
parent 9c9d053147
commit b6494085b4
38 changed files with 141 additions and 161 deletions

View File

@@ -71,7 +71,7 @@ PyObject* BodyPy::insertObject(PyObject *args)
return nullptr;
}
bool after = PyObject_IsTrue(afterPy) ? true : false;
bool after = Base::asBoolean(afterPy);
Body* body = this->getBodyPtr();
try {