| 113 | } |
| 114 | |
| 115 | PyObject* BodyBase::getPyObject() |
| 116 | { |
| 117 | if (PythonObject.is(Py::_None())) { |
| 118 | // ref counter is set to 1 |
| 119 | PythonObject = Py::Object(new BodyBasePy(this), true); |
| 120 | } |
| 121 | return Py::new_reference_to(PythonObject); |
| 122 | } |
| 123 | |
| 124 | } // namespace Part |
no test coverage detected