Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/bmesh/bmesh_py_types.c
| Show First 20 Lines • Show All 1,537 Lines • ▼ Show 20 Lines | if (Py_TYPE(self) != Py_TYPE(value)) { | ||||
| PyErr_Format(PyExc_TypeError, | PyErr_Format(PyExc_TypeError, | ||||
| "expected element of type '%.200s' not '%.200s'", | "expected element of type '%.200s' not '%.200s'", | ||||
| Py_TYPE(self)->tp_name, | Py_TYPE(self)->tp_name, | ||||
| Py_TYPE(value)->tp_name); | Py_TYPE(value)->tp_name); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| if (value->ele != self->ele) { | if (value->ele != self->ele) { | ||||
| BM_elem_attrs_copy(value->bm, self->bm, value->ele, self->ele); | BM_elem_attrs_copy_ex(value->bm, self->bm, value->ele, self->ele, 0xff, CD_MASK_BM_ELEM_PYPTR); | ||||
| } | } | ||||
| Py_RETURN_NONE; | Py_RETURN_NONE; | ||||
| } | } | ||||
| /* Vert | /* Vert | ||||
| * ---- */ | * ---- */ | ||||
| ▲ Show 20 Lines • Show All 2,827 Lines • Show Last 20 Lines | |||||