Example #1
0
static PyObject *Interface1D_id_get(BPy_Interface1D *self, void *UNUSED(closure))
{
    Id id(self->if1D->getId());
    if (PyErr_Occurred())
        return NULL;
    return BPy_Id_from_Id(id); // return a copy
}
Example #2
0
static PyObject *Stroke_id_get(BPy_Stroke *self, void *UNUSED(closure))
{
	Id id(self->s->getId());
	return BPy_Id_from_Id(id); // return a copy
}
Example #3
0
static PyObject *SVertex_id_get(BPy_SVertex *self, void *UNUSED(closure))
{
	Id id(self->sv->getId());
	return BPy_Id_from_Id(id); // return a copy
}
static PyObject *ViewEdge_id_get(BPy_ViewEdge *self, void *UNUSED(closure))
{
	Id id(self->ve->getId());
	return BPy_Id_from_Id(id); // return a copy
}