Curves: Add edit mode operator to set attribute values #105076

Merged
Hans Goudey merged 9 commits from HooglyBoogly/blender:curves-attribute-set into main 2023-10-17 12:35:50 +02:00
1 changed files with 1 additions and 0 deletions
Showing only changes of commit 134da4d97e - Show all commits

View File

@ -136,6 +136,7 @@ static int set_attribute_exec(bContext *C, wmOperator *op)
Vector<int64_t> indices;
const IndexMask selection = retrieve_selected_elements(*curves_id, attribute.domain, indices);
if (selection.is_empty()) {
attribute.finish();
continue;
}
dst_type.fill_assign_indices(dst_value.get(), attribute.span.data(), selection);