CurvesGeometry: Add initial vertex group support #106944
@ -151,9 +151,9 @@ static void move_curves_geometry(CurvesGeometry &dst, CurvesGeometry &src)
|
||||
|
||||
std::swap(dst.curve_offsets, src.curve_offsets);
|
||||
|
||||
dst.vertex_group_active_index = src.vertex_group_active_index;
|
||||
std::swap(dst.vertex_group_names.first, src.vertex_group_names.first);
|
||||
filedescriptor marked this conversation as resolved
|
||||
std::swap(dst.vertex_group_names.last, src.vertex_group_names.last);
|
||||
filedescriptor marked this conversation as resolved
Outdated
Hans Goudey
commented
Can just keep it simpler by swapping everything.
Can just keep it simpler by swapping everything.
```
std::swap(dst.vertex_group_names, src.vertex_group_names);
std::swap(dst.vertex_group_active_index, src.vertex_group_active_index);
```
|
||||
std::swap(dst.vertex_group_active_index, src.vertex_group_active_index);
|
||||
src.vertex_group_active_index = 0;
|
||||
|
||||
std::swap(dst.runtime, src.runtime);
|
||||
|
Loading…
Reference in New Issue
Block a user
src.vertex_group_active_index = 0;
That part is unnecessary I think