CurvesGeometry: Add initial vertex group support #106944

Merged
Falk David merged 24 commits from filedescriptor/blender:curves-deform-verts into main 2023-09-27 10:26:16 +02:00
Showing only changes of commit 1566bd2888 - Show all commits

View File

@ -486,8 +486,8 @@ MutableSpan<MDeformVert> CurvesGeometry::deform_verts_for_write()
if (dvert != nullptr) {
return {dvert, this->point_num};
}
return {(MDeformVert *)CustomData_add_layer(
&this->point_data, CD_MDEFORMVERT, CD_SET_DEFAULT, this->point_num),
return {static_cast<MDeformVert *>(CustomData_add_layer(
filedescriptor marked this conversation as resolved Outdated

Casting style

Casting style
&this->point_data, CD_MDEFORMVERT, CD_SET_DEFAULT, this->point_num)),
this->point_num};
}