Fix for pointers to auto variables returned from Python wrapper class methods.

The previous implementation was a quick workaround of C++ const references.

Also removed the unused 'borrowed' flag from the Python wrapper of FrsMaterial.
This commit is contained in:
2013-02-16 17:13:59 +00:00
parent 06c51df4db
commit 90ed5ea4ea
6 changed files with 8 additions and 18 deletions

View File

@@ -179,9 +179,7 @@ PyDoc_STRVAR(FEdgeSmooth_material_doc,
static PyObject *FEdgeSmooth_material_get(BPy_FEdgeSmooth *self, void *UNUSED(closure))
{
// FIXME frs_material() returns a const reference.
FrsMaterial m(self->fes->frs_material());
return BPy_FrsMaterial_from_FrsMaterial(m);
return BPy_FrsMaterial_from_FrsMaterial(self->fes->frs_material());
}
PyDoc_STRVAR(FEdgeSmooth_face_mark_doc,