Fem: replace PyObject_IsTrue with Base::asBoolean

This commit is contained in:
wmayer
2022-07-16 13:37:55 +02:00
parent 76c8dfa452
commit 9984d6bf86

View File

@@ -635,7 +635,7 @@ PyObject* FemMeshPy::writeABAQUS(PyObject *args)
return nullptr;
std::string EncodedName = std::string(Name);
PyMem_Free(Name);
bool grpParam = PyObject_IsTrue(groupParam) ? true : false;
bool grpParam = Base::asBoolean(groupParam);
try {
getFemMeshPtr()->writeABAQUS(EncodedName.c_str(), elemParam, grpParam);