mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Preserve group IDs in the Spline from Points node (#1574)
This commit is contained in:
@@ -297,7 +297,14 @@ pub struct SplinesFromPointsNode;
|
||||
#[node_macro::node_fn(SplinesFromPointsNode)]
|
||||
fn splines_from_points(mut vector_data: VectorData) -> VectorData {
|
||||
for subpath in &mut vector_data.subpaths {
|
||||
*subpath = Subpath::new_cubic_spline(subpath.anchors());
|
||||
let mut spline = Subpath::new_cubic_spline(subpath.anchors());
|
||||
|
||||
// Preserve the manipulator group ids
|
||||
for (spline_manipulator_group, original_manipulator_group) in spline.manipulator_groups_mut().iter_mut().zip(subpath.manipulator_groups()) {
|
||||
spline_manipulator_group.id = original_manipulator_group.id;
|
||||
}
|
||||
|
||||
*subpath = spline;
|
||||
}
|
||||
|
||||
vector_data
|
||||
|
||||
Reference in New Issue
Block a user