Fix #110485: Mesh to curve node incorrect implicit sharing crash
Regression caused by 301f13191befb727fe96e8d919798eb07077c017. To share attribute arrays, domain sizes should be the same. Pull Request: https://projects.blender.org/blender/blender/pulls/110487
This commit is contained in:
parent
61ee554e3f
commit
803589ca5a
@ -58,7 +58,9 @@ BLI_NOINLINE bke::CurvesGeometry create_curve_from_vert_indices(
|
||||
curves.cyclic_for_write().slice(cyclic_curves).fill(true);
|
||||
}
|
||||
|
||||
const bool share_vert_data = indices_are_full_ordered_copy(vert_indices);
|
||||
const int src_total_points = mesh_attributes.domain_size(ATTR_DOMAIN_POINT);
|
||||
const bool share_vert_data = vert_indices.size() == src_total_points &&
|
||||
indices_are_full_ordered_copy(vert_indices);
|
||||
if (share_vert_data) {
|
||||
bke::copy_attributes(
|
||||
mesh_attributes, ATTR_DOMAIN_POINT, propagation_info, {}, curves_attributes);
|
||||
|
Loading…
Reference in New Issue
Block a user