Skip to content

Preserve point IDs without a path node #2068

@0HyperCube

Description

@0HyperCube

When there is no path node, the compute_modified_vector function (included below) relies on the click_targets. However click targets don't store PointIds, SegementIds, or colinear handles. This leads to a couple of issues:

  • If you select a point on ellipse (no dragging) the colinear check box won't be filled.
  • If the segments are in an odd order (e.g. with the bevel node), inserting a point in a segment crashes.

self.document_metadata
.click_targets
.get(&layer)
.map(|click| click.iter().map(ClickTarget::subpath))
.map(|subpaths| VectorData::from_subpaths(subpaths, true))
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    ArchitectureInvolves architecture or engineering work or discussionCrashA panic which crashed the editor
    No fields configured for Feature.

    Projects

    Status
    Completed This Milestone

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions