Cleanup: Snake case for variable name

This commit is contained in:
Hans Goudey 2022-06-14 16:27:26 +02:00
parent 0f06de8072
commit 25f18e6c49
1 changed files with 3 additions and 3 deletions

View File

@ -524,12 +524,12 @@ static int geometry_color_attribute_duplicate_exec(bContext *C, wmOperator *op)
return OPERATOR_CANCELLED;
}
CustomDataLayer *newLayer = BKE_id_attribute_duplicate(id, layer->name, op->reports);
if (newLayer == nullptr) {
CustomDataLayer *new_layer = BKE_id_attribute_duplicate(id, layer->name, op->reports);
if (new_layer == nullptr) {
return OPERATOR_CANCELLED;
}
BKE_id_attributes_active_color_set(id, newLayer);
BKE_id_attributes_active_color_set(id, new_layer);
DEG_id_tag_update(id, ID_RECALC_GEOMETRY);
WM_main_add_notifier(NC_GEOM | ND_DATA, id);