Fix build errors after merge
This commit is contained in:
parent
a102b60d92
commit
4ed7b4338d
|
@ -738,8 +738,6 @@ Mesh *curve_to_mesh_sweep(const CurvesGeometry &main,
|
|||
positions.slice(info.vert_range));
|
||||
});
|
||||
|
||||
MutableAttributeAccessor mesh_attributes = mesh->attributes_for_write();
|
||||
|
||||
SpanAttributeWriter<bool> sharp_edges;
|
||||
write_sharp_bezier_edges(curves_info, offsets, mesh_attributes, sharp_edges);
|
||||
if (fill_caps) {
|
||||
|
|
|
@ -1043,7 +1043,8 @@ static bool data_transfer_layersmapping_generate(ListBase *r_map,
|
|||
mix_factor,
|
||||
mix_weights,
|
||||
CustomData_get_layer_named(&me_src->pdata, CD_PROP_BOOL, "sharp_face"),
|
||||
CustomData_get_layer_named(&me_dst->pdata, CD_PROP_BOOL, "sharp_face"),
|
||||
CustomData_get_layer_named_for_write(
|
||||
&me_dst->pdata, CD_PROP_BOOL, "sharp_face", num_elem_dst),
|
||||
interp,
|
||||
interp_data);
|
||||
return true;
|
||||
|
|
|
@ -454,7 +454,7 @@ static void convert_mfaces_to_mpolys(ID *id,
|
|||
pdata, CD_PROP_INT32, CD_SET_DEFAULT, nullptr, totpoly, "material_index"));
|
||||
}
|
||||
bool *sharp_faces = static_cast<bool *>(
|
||||
CustomData_get_layer_named(pdata, CD_PROP_BOOL, "sharp_face"));
|
||||
CustomData_get_layer_named_for_write(pdata, CD_PROP_BOOL, "sharp_face", totpoly));
|
||||
if (!sharp_faces) {
|
||||
sharp_faces = static_cast<bool *>(CustomData_add_layer_named(
|
||||
pdata, CD_PROP_BOOL, CD_SET_DEFAULT, nullptr, totpoly, "sharp_face"));
|
||||
|
|
|
@ -1565,7 +1565,6 @@ static void set_ccgdm_all_geometry(CCGDerivedMesh *ccgdm,
|
|||
|
||||
medge = dm->getEdgeArray(dm);
|
||||
|
||||
const MPoly *mpoly = static_cast<const MPoly *>(CustomData_get_layer(&dm->polyData, CD_MPOLY));
|
||||
const int *material_indices = static_cast<const int *>(
|
||||
CustomData_get_layer_named(&dm->polyData, CD_MPOLY, "material_index"));
|
||||
const bool *sharp_faces = static_cast<const bool *>(
|
||||
|
|
|
@ -2073,7 +2073,6 @@ static void lineart_geometry_object_load(LineartObjectInfo *ob_info,
|
|||
edge_feat_settings.userdata_chunk_size = sizeof(EdgeFeatReduceData);
|
||||
edge_feat_settings.func_reduce = feat_data_sum_reduce;
|
||||
|
||||
const bke::AttributeAccessor attributes = me->attributes();
|
||||
const VArray<bool> sharp_edges = attributes.lookup_or_default<bool>(
|
||||
"sharp_edge", ATTR_DOMAIN_EDGE, false);
|
||||
|
||||
|
|
|
@ -671,7 +671,7 @@ static bool rna_MeshPolygon_use_smooth_get(PointerRNA *ptr)
|
|||
static void rna_MeshPolygon_use_smooth_set(PointerRNA *ptr, bool value)
|
||||
{
|
||||
Mesh *mesh = rna_mesh(ptr);
|
||||
bool *sharp_faces = (bool *)CustomData_duplicate_referenced_layer_named(
|
||||
bool *sharp_faces = (bool *)CustomData_get_layer_named_for_write(
|
||||
&mesh->pdata, CD_PROP_BOOL, "sharp_face", mesh->totpoly);
|
||||
if (!sharp_faces) {
|
||||
if (value) {
|
||||
|
|
Loading…
Reference in New Issue