diff options
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_types_customdata.c | 5 | ||||
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_types_meshdata.c | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types_customdata.c b/source/blender/python/bmesh/bmesh_py_types_customdata.c index 1f5c2f57e01..10ae6a33435 100644 --- a/source/blender/python/bmesh/bmesh_py_types_customdata.c +++ b/source/blender/python/bmesh/bmesh_py_types_customdata.c @@ -462,11 +462,12 @@ static PyObject *bpy_bmlayercollection_verify(BPy_BMLayerCollection *self) BM_data_layer_add(self->bm, data, self->type); index = 0; /* Because addingCustomData layers to a bmesh will invalidate any existing pointers - * in Py objects we can't lazily add the associated bool layers. So add them all right + * in Py objects we can't lazily add the associated bool layers. So add them all right * now. */ if (self->type == CD_PROP_FLOAT2 && self->htype == BM_LOOP) { - const char *active_uv_name = CustomData_get_active_layer_name(&self->bm->ldata, CD_PROP_FLOAT2); + const char *active_uv_name = CustomData_get_active_layer_name(&self->bm->ldata, + CD_PROP_FLOAT2); BM_uv_map_ensure_vert_selection_attribute(self->bm, active_uv_name); BM_uv_map_ensure_edge_selection_attribute(self->bm, active_uv_name); BM_uv_map_ensure_pin_attribute(self->bm, active_uv_name); diff --git a/source/blender/python/bmesh/bmesh_py_types_meshdata.c b/source/blender/python/bmesh/bmesh_py_types_meshdata.c index a090ed30da3..5d9f9925487 100644 --- a/source/blender/python/bmesh/bmesh_py_types_meshdata.c +++ b/source/blender/python/bmesh/bmesh_py_types_meshdata.c @@ -74,9 +74,9 @@ static int bpy_bmloopuv_pin_uv_set(BPy_BMLoopUV *self, PyObject *value, void *UN if (self->pinned) { *self->pinned = PyC_Long_AsBool(value); } - /* TODO(martijn) if (!self->pinned) that means the layed does not exist , or at least didn't exist - * when the PY object was created. We *should* create it here instead of just bailing, but we can't - * because that would invalidate all existing BPy_BMLoopUV objects' interal pointers. + /* TODO(martijn) if (!self->pinned) that means the layed does not exist , or at least didn't + * exist when the PY object was created. We *should* create it here instead of just bailing, but + * we can't because that would invalidate all existing BPy_BMLoopUV objects' interal pointers. * the same goes for vertsel and edgesel below. */ return 0; |