forked from blender/blender
me-main #1
@ -793,11 +793,8 @@ static int curves_set_selection_domain_exec(bContext *C, wmOperator *op)
|
|||||||
if (curves.points_num() == 0) {
|
if (curves.points_num() == 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const GVArray src = attributes.lookup(".selection", domain);
|
|
||||||
if (src.is_empty()) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if (const GVArray src = attributes.lookup(".selection", domain)) {
|
||||||
const CPPType &type = src.type();
|
const CPPType &type = src.type();
|
||||||
void *dst = MEM_malloc_arrayN(attributes.domain_size(domain), type.size(), __func__);
|
void *dst = MEM_malloc_arrayN(attributes.domain_size(domain), type.size(), __func__);
|
||||||
src.materialize(dst);
|
src.materialize(dst);
|
||||||
@ -809,6 +806,7 @@ static int curves_set_selection_domain_exec(bContext *C, wmOperator *op)
|
|||||||
bke::AttributeInitMoveArray(dst))) {
|
bke::AttributeInitMoveArray(dst))) {
|
||||||
MEM_freeN(dst);
|
MEM_freeN(dst);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Use #ID_RECALC_GEOMETRY instead of #ID_RECALC_SELECT because it is handled as a generic
|
/* Use #ID_RECALC_GEOMETRY instead of #ID_RECALC_SELECT because it is handled as a generic
|
||||||
* attribute for now. */
|
* attribute for now. */
|
||||||
|
Loading…
Reference in New Issue
Block a user