mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix #145666: Crash separating all curves
The offsets array is empty when there are no curves, even though its size is usually one more than the number of curves. Pull Request: https://projects.blender.org/blender/blender/pulls/145669
This commit is contained in:
parent
5cc6ad6afe
commit
57f35337e9
1 changed files with 3 additions and 1 deletions
|
|
@ -380,7 +380,9 @@ static bke::CurvesGeometry copy_data_to_geometry(const bke::CurvesGeometry &src_
|
|||
bke::CurvesGeometry dst_curves(offsets.last(), dst_to_src_curve.size());
|
||||
BKE_defgroup_copy_list(&dst_curves.vertex_group_names, &src_curves.vertex_group_names);
|
||||
|
||||
array_utils::copy(offsets, dst_curves.offsets_for_write());
|
||||
if (!dst_curves.is_empty()) {
|
||||
array_utils::copy(offsets, dst_curves.offsets_for_write());
|
||||
}
|
||||
dst_curves.cyclic_for_write().copy_from(cyclic);
|
||||
|
||||
const bke::AttributeAccessor src_attributes = src_curves.attributes();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue